Size Size Size Size Struct

Definition

Describes the width and height of an object.

public value class Size
[System.Security.SecurityCritical]
public struct Size
type Size = struct
Public Structure Size
Inheritance
Attributes

Remarks

This struct represents the .NET projection of the Windows Runtime (WinRT) Size struct. For more information, see Size in the UWP API reference.

Constructors

Size(Double, Double) Size(Double, Double) Size(Double, Double) Size(Double, Double)

Initializes a new instance of the Size struct and assigns it an initial width and height.

Properties

Empty Empty Empty Empty

Gets a value that represents an empty Size.

Height Height Height Height

Gets or sets the height of this instance of Size.

IsEmpty IsEmpty IsEmpty IsEmpty

Gets a value that indicates whether this instance of Size is Empty.

Width Width Width Width

Gets or sets the width of this instance of Size.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Compares an object to an instance of Size for equality.

Equals(Size) Equals(Size) Equals(Size) Equals(Size)

Compares a value to an instance of Size for equality.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Gets the hash code for this instance of Size.

ToString() ToString() ToString() ToString()

Returns a string representation of this Size.

Operators

Equality(Size, Size) Equality(Size, Size) Equality(Size, Size) Equality(Size, Size)

Compares two instances of Size for equality.

Inequality(Size, Size) Inequality(Size, Size) Inequality(Size, Size) Inequality(Size, Size)

Compares two instances of Size for inequality.

Extension Methods

ToVector2(Size) ToVector2(Size) ToVector2(Size) ToVector2(Size)

Applies to

See also