Show / Hide Table of Contents

    Struct SizeF

    Represents a float size (width and height).

    Inherited Members
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: AGS.API
    Assembly: AGS.API.dll
    Syntax
    public struct SizeF

    Constructors

    | Improve this Doc View Source

    SizeF(Single, Single)

    Declaration
    public SizeF(float width, float height)
    Parameters
    Type Name Description
    System.Single width
    System.Single height

    Fields

    | Improve this Doc View Source

    Empty

    Declaration
    public static SizeF Empty
    Field Value
    Type Description
    SizeF

    Properties

    | Improve this Doc View Source

    Height

    Gets the height.

    Declaration
    public float Height { get; }
    Property Value
    Type Description
    System.Single

    The height.

    | Improve this Doc View Source

    Width

    Gets the width.

    Declaration
    public float Width { get; }
    Property Value
    Type Description
    System.Single

    The width.

    Methods

    | Improve this Doc View Source

    Deconstruct(out Single, out Single)

    Declaration
    public void Deconstruct(out float width, out float height)
    Parameters
    Type Name Description
    System.Single width
    System.Single height
    | Improve this Doc View Source

    Equals(SizeF)

    Declaration
    public bool Equals(SizeF other)
    Parameters
    Type Name Description
    SizeF other
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    Overrides
    System.ValueType.Equals(System.Object)
    | Improve this Doc View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.ValueType.GetHashCode()
    | Improve this Doc View Source

    Scale(Single, Single)

    Scale the size with specified factorX and factorY.

    Declaration
    public SizeF Scale(float factorX, float factorY)
    Parameters
    Type Name Description
    System.Single factorX

    The factor in which to scale the width.

    System.Single factorY

    The factor in which to scale the height.

    Returns
    Type Description
    SizeF

    The new size.

    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.ValueType.ToString()

    Operators

    | Improve this Doc View Source

    Implicit((Single width, Single height) to SizeF)

    Declaration
    public static implicit operator SizeF((float width, float height) size)
    Parameters
    Type Name Description
    System.ValueTuple<System.Single, System.Single> size
    Returns
    Type Description
    SizeF
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX