Size Structure |
Namespace: Windows.Foundation
public struct Size
The Size type exposes the following members.
Name | Description | |
---|---|---|
Size |
Initializes a new instance of the Windows.Foundation.Size
structure and assigns it an initial width and height.
|
Name | Description | |
---|---|---|
Equals(Object) |
Compares an object to an instance of Windows.Foundation.Size
for equality.
(Overrides ValueTypeEquals(Object).) | |
Equals(Size) |
Compares a value to an instance of Windows.Foundation.Size
for equality.
| |
GetHashCode |
Gets the hash code for this instance of Windows.Foundation.Size.
(Overrides ValueTypeGetHashCode.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ToString |
Returns a string representation of this Windows.Foundation.Size.
(Overrides ValueTypeToString.) |
Name | Description | |
---|---|---|
Equality |
Compares two instances of Windows.Foundation.Size for
equality. | |
Inequality |
Compares two instances of Windows.Foundation.Size for
inequality. |
Name | Description | |
---|---|---|
Empty |
Gets a value that represents a static empty Windows.Foundation.Size.
| |
Height |
Gets or sets the height of this instance of Windows.Foundation.Size in pixels. The default is 0. The value cannot be negative.
| |
IsEmpty |
Gets a value that indicates whether this instance of
Windows.Foundation.Size is Windows.Foundation.Size.Empty.
| |
Width |
Gets or sets the width of this instance of Windows.Foundation.Size.
|