[]
Structure specifing a size with double Width and Height.
public struct Size2D : IEquatable<Size2D>
Name | Description |
---|---|
Size2D(Size2F) | Initializes a new instance of the Size2D struct. |
Size2D(Size) | Initializes a new instance of the Size2D struct. |
Size2D(double, double) | Initializes a new instance of the Size2D struct. |
Size2D(SizeF) | Initializes a new instance of the Size2D struct. |
Name | Description |
---|---|
Empty | An empty size. |
Height | The vertical component of this Size2D structure. |
Infinite | A size with infinite Width and Height. |
SizeInBytes | The size of the Size2D type, in bytes. |
Width | The horizontal component of this Size2D structure. |
Name | Description |
---|---|
IsEmpty | Determines if all components of Size2D are equal to zero. |
Name | Description |
---|---|
Add(Size2D, Size2D) | Adds the width and height of one Size2D structure to the width and height of another Size2D structure. |
Equals(Size2D) | Indicates whether this instance and a specified object are equal. |
Equals(object) | Indicates whether this instance and a specified object are equal. |
GetHashCode() | Returns a hash code for this instance. |
Round() | Returns a Size2L with rounded width and height. |
Scale(Size2D, double) | Scales the width and height by the specified scaleFactor. |
Scale(Size2D, double, double) | Scales the width and height by the specified scaleX and scaleY. |
Scale(double) | Scales the width and height by the specified scaleFactor. |
Scale(double, double) | Scales the width and height by the specified scaleX and scaleY. |
Subtract(Size2D, Size2D) | Subtracts the width and height of one Size2D structure from the width and height of another Size2D structure. |
ToSize() | Converts Size2D to C1.Win.Interop.Size. |
ToSize2F() | |
ToSizeF() | |
ToString() | Returns a string that represents the current object. |
Truncate() | Returns a Size2L with truncated width and height. |
Name | Description |
---|---|
operator ==(Size2D, Size2D) | Determines if the specified values are equal. |
explicit operator Size(Size2D) | Performs an explicit conversion from Size2D to C1.Win.Interop.Size. |
explicit operator Size2D(Size) | Performs an explicit conversion from C1.Win.Interop.Size to Size2D. |
operator !=(Size2D, Size2D) | Determines if the specified values are not equal. |