Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
Size Struct
Definition
- Namespace:
- Windows.Foundation
- Assembly:
- System.Runtime.WindowsRuntime.dll
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
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
| Name | Description |
|---|---|
| Size(Double, Double) |
Initializes a new instance of the Size struct and assigns it an initial width and height. |
Properties
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
| Equality(Size, Size) |
Compares two instances of Size for equality. |
| Inequality(Size, Size) |
Compares two instances of Size for inequality. |
Extension Methods
| Name | Description |
|---|---|
| ToVector2(Size) | |
Applies to
See also
Feedback
Was this page helpful?
