[]
Stores an ordered pair of double values, typically the width and height of a rectangle.
public struct Size
| Name | Description |
|---|---|
| Size(double, double) | Initializes a new instance of the Size structure. |
| Name | Description |
|---|---|
| Empty | Represents an empty instance of the Size structure. |
| Height | Gets or sets the vertical component of the current Size. |
| IsEmpty | Gets a value indicating whether of the current Size has zero Width and Height. |
| Width | Gets or sets the horizontal component of the current Size. |
| Name | Description |
|---|---|
| Add(Size, Size) | Adds two Size structures. |
| Ceiling() | Converts the current Size structure to a Point by rounding the width and height to the next higher integer values. |
| Equals(object) | Indicates whether this instance and a specified object are equal. |
| GetHashCode() | Returns the hash code for this instance. |
| Parse(string, out Size, bool) | Converts a string to a Size structure. |
| Substract(Size, Size) | Subtracts one Size structure from another. |
| ToString() | Converts the current Size structure to a human-readable string representing it. |
| Truncate() | Converts the current Size structure to a Point by truncating the width and height to integer values. |
| Name | Description |
|---|---|
| operator +(Size, Size) | Adds two Size structures. |
| operator ==(Size, Size) | Indicates whether two Size structures are equal. |
| explicit operator Point(Size) | |
| implicit operator Size(Size) | |
| implicit operator Size(SizeF) | |
| operator !=(Size, Size) | Indicates whether two Size structures are not equal. |
| operator -(Size, Size) | Subtracts one Size structure from another. |