Show / Hide Table of Contents

    Struct Size

    Represents an integer 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 Size

    Constructors

    | Improve this Doc View Source

    Size(Int32, Int32)

    Declaration
    public Size(int width, int height)
    Parameters
    Type Name Description
    System.Int32 width
    System.Int32 height

    Fields

    | Improve this Doc View Source

    Empty

    Declaration
    public static Size Empty
    Field Value
    Type Description
    Size

    Properties

    | Improve this Doc View Source

    Height

    Gets the height.

    Declaration
    public int Height { get; }
    Property Value
    Type Description
    System.Int32

    The height.

    | Improve this Doc View Source

    Width

    Gets the width.

    Declaration
    public int Width { get; }
    Property Value
    Type Description
    System.Int32

    The width.

    Methods

    | Improve this Doc View Source

    Deconstruct(out Int32, out Int32)

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

    Equals(Size)

    Declaration
    public bool Equals(Size other)
    Parameters
    Type Name Description
    Size 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

    ToString()

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

    Operators

    | Improve this Doc View Source

    Implicit((Int32 width, Int32 height) to Size)

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