[]
Structure specifing a size with float Width and Height.
public struct Size2F : IEquatable<Size2F>
| Name | Description |
|---|---|
| Size2F(Size2D) | Initializes a new instance of the Size2F struct. |
| Size2F(float, float) | Initializes a new instance of the Size2F struct. |
| Size2F(Size) | Initializes a new instance of the Size2F struct. |
| Name | Description |
|---|---|
| Empty | An empty size. |
| Height | The vertical component of this Size2F structure. |
| Infinite | A size with infinite Width and Height. |
| SizeInBytes | The size of the Size2F type, in bytes. |
| Width | The horizontal component of this Size2F structure. |
| Name | Description |
|---|---|
| IsEmpty | Determines if all components of Size2F are equal to zero. |
| Name | Description |
|---|---|
| Add(Size2F, Size2F) | Adds the width and height of one Size2F structure to the width and height of another Size2F structure. |
| Equals(Size2F) | 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(Size2F, float) | Scales the width and height by the specified scaleFactor. |
| Scale(Size2F, float, float) | Scales the width and height by the specified scaleX and scaleY. |
| Scale(float) | Scales the width and height by the specified scaleFactor. |
| Scale(float, float) | Scales the width and height by the specified scaleX and scaleY. |
| Subtract(Size2F, Size2F) | Subtracts the width and height of one Size2F structure from the width and height of another Size2F structure. |
| ToSize() | Converts Size2F to System.Windows.Size. |
| ToSize2D() | |
| ToString() | Returns a string that represents the current object. |
| Truncate() | Returns a Size2L with truncated width and height. |
| Name | Description |
|---|---|
| operator ==(Size2F, Size2F) | Determines if the specified values are equal. |
| explicit operator Vector2(Size2F) | |
| explicit operator Size(Size2F) | Performs an explicit conversion from Size2F to System.Windows.Size. |
| explicit operator Size2F(Vector2) | |
| explicit operator Size2F(Size) | Performs an explicit conversion from System.Windows.Size to Size2F. |
| operator !=(Size2F, Size2F) | Determines if the specified values are not equal. |