Struct Size

    Definition

    Namespace:
    ElmSharp
    Assembly:
    ElmSharp.dll

    The Size is a struct defining the height and width as a pair of generic type.

    [Obsolete("This has been deprecated in API12")]
    public struct Size : IEquatable<Size>
    Implements
    System.IEquatable<T><Size>

    Constructors

    View Source

    Size(int, int)

    Initializes a new instance of the size structure from specified dimensions.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    public Size(int width, int height)
    Parameters
    Type Name Description
    int width

    The width to set.

    int height

    The height to set.

    Fields

    View Source

    Height

    Magnitude along the vertical axis, in platform-specific units.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    public int Height
    Field Value
    Type Description
    int
    View Source

    Width

    Magnitude along the horizontal axis, in platform-defined units.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    public int Width
    Field Value
    Type Description
    int

    Methods

    View Source

    Equals(Size)

    Indicates whether this instance and a Size object are equal.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    public bool Equals(Size other)
    Parameters
    Type Name Description
    Size other

    The Size to compare with the current instance.

    Returns
    Type Description
    bool

    true if the object and this instance are of the same type and represent the same value, otherwise false.

    View Source

    Equals(object)

    Indicates whether this instance and a specified object are equal.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    The object to compare with the current instance.

    Returns
    Type Description
    bool

    true if the object and this instance are of the same type and represent the same value, otherwise false.

    Overrides
    System.ValueType.Equals(object)
    View Source

    GetHashCode()

    Gets the hash code.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    public override int GetHashCode()
    Returns
    Type Description
    int

    The hash code.

    Overrides
    System.ValueType.GetHashCode()
    View Source

    ToString()

    A human-readable representation of Size.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    public override string ToString()
    Returns
    Type Description
    string

    The string is formatted as "{{Width={0} Height={1}}}".

    Overrides
    System.ValueType.ToString()

    Operators

    View Source

    operator ==(Size, Size)

    Whether both Sizes are equal.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    public static bool operator ==(Size s1, Size s2)
    Parameters
    Type Name Description
    Size s1

    A Size on the left hand side.

    Size s2

    A Size on the right hand side.

    Returns
    Type Description
    bool

    True if both Sizes have equal values.

    View Source

    operator !=(Size, Size)

    Whether both Sizes are not equal.

    Declaration
    [Obsolete("This has been deprecated in API12")]
    public static bool operator !=(Size s1, Size s2)
    Parameters
    Type Name Description
    Size s1

    A Size on the left hand side.

    Size s2

    A Size on the right hand side.

    Returns
    Type Description
    bool

    True if both Sizes do not have equal values.

    Implements

    System.IEquatable<T>
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX