แก้ไข

แชร์ผ่าน


Size Struct

Definition

Describes the width and height of an object.

public value class Size
[System.Security.SecurityCritical]
public struct Size
[<System.Security.SecurityCritical>]
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)

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

Properties

Empty

Gets a value that represents an empty Size.

Height

Gets or sets the height of this instance of Size.

IsEmpty

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

Width

Gets or sets the width of this instance of Size.

Methods

Equals(Object)

Compares an object to an instance of Size for equality.

Equals(Size)

Compares a value to an instance of Size for equality.

GetHashCode()

Gets the hash code for this instance of Size.

ToString()

Returns a string representation of this Size.

Operators

Equality(Size, Size)

Compares two instances of Size for equality.

Inequality(Size, Size)

Compares two instances of Size for inequality.

Extension Methods

ToVector2(Size)

Applies to

See also