Size Struct
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
This struct represents the .NET projection of the Windows Runtime (WinRT) Size
struct. For more information, see Size in the UWP API reference.
Size(Double, Double) |
Initializes a new instance of the Size struct and assigns it an initial width and height. |
Empty |
Gets a value that represents an empty Size. |
Height |
Gets or sets the height of this instance of Size. |
Is |
Gets a value that indicates whether this instance of Size is Empty. |
Width |
Gets or sets the width of this instance of Size. |
Equals(Object) |
Compares an object to an instance of Size for equality. |
Equals(Size) |
Compares a value to an instance of Size for equality. |
Get |
Gets the hash code for this instance of Size. |
To |
Returns a string representation of this Size. |
Equality(Size, Size) |
Compares two instances of Size for equality. |
Inequality(Size, Size) |
Compares two instances of Size for inequality. |
Product | Versions |
---|---|
UWP | 10.0 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: