Struct Size

    Definition

    Namespace:
    Tizen.Multimedia
    Assembly:
    Tizen.Multimedia.dll

    Represents a size in 2D space.

    public struct Size

    Constructors

    View Source

    Size(int, int)

    Initializes a new instance of the Size with the specified values.

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

    Width of the size.

    int height

    Height of the size.

    Properties

    View Source

    Height

    Gets or sets the height.

    Declaration
    public int Height { readonly get; set; }
    Property Value
    Type Description
    int
    View Source

    Width

    Gets or sets the width.

    Declaration
    public int Width { readonly get; set; }
    Property Value
    Type Description
    int

    Methods

    View Source

    Equals(object)

    Compares an object to an instance of Size for equality.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    A object to compare.

    Returns
    Type Description
    bool

    true if the two sizes are equal; otherwise, false.

    Overrides
    System.ValueType.Equals(object)
    View Source

    GetHashCode()

    Gets the hash code for this instance of Size.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    The hash code for this instance of Size.

    Overrides
    System.ValueType.GetHashCode()
    View Source

    ToString()

    Returns a string that represents the current object.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string that represents the current object.

    Overrides
    System.ValueType.ToString()

    Operators

    View Source

    operator ==(Size, Size)

    Compares two instances of Size for equality.

    Declaration
    public static bool operator ==(Size size1, Size size2)
    Parameters
    Type Name Description
    Size size1

    A Size to compare.

    Size size2

    A Size to compare.

    Returns
    Type Description
    bool

    true if the two instances of Size are equal; otherwise false.

    View Source

    operator !=(Size, Size)

    Compares two instances of Size for inequality.

    Declaration
    public static bool operator !=(Size size1, Size size2)
    Parameters
    Type Name Description
    Size size1

    A Size to compare.

    Size size2

    A Size to compare.

    Returns
    Type Description
    bool

    true if the two instances of Size are not equal; otherwise false.

    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX