Struct SizeF
SizeF structure
Stores an ordered pair of floating-point numbers, typically the width and height of a rectangle.
Constructors
| Name | Description |
|---|
| SizeF(PointF) | Initializes a new instance of the SizeF structure from the specified PointF. |
| SizeF(SizeF) | Initializes a new instance of the SizeF structure from the specified SizeF. |
| SizeF(float, float) | Initializes a new instance of the SizeF structure from the specified dimensions. |
Properties
| Name | Description |
|---|
| static Empty { get; } | Gets a new instance of the SizeF structure that has Width and Height values set to zero. |
| Height { get; set; } | Gets or sets the vertical component of this SizeF. |
| IsEmpty { get; } | Gets a value indicating whether this SizeF has zero width and height. |
| Width { get; set; } | Gets or sets the horizontal component of this SizeF. |
Methods
| Name | Description |
|---|
| static Add(SizeF, SizeF) | Adds the width and height of one SizeF structure to the width and height of another SizeF structure. |
| static Subtract(SizeF, SizeF) | Subtracts the width and height of one SizeF structure from the width and height of another SizeF structure. |
| override Equals(object) | Tests to see whether the specified object is a SizeF with the same dimensions as this SizeF. |
| override GetHashCode() | Returns a hash code for this Size structure. |
| ToPointF() | Converts a SizeF to a PointF. |
| ToSize() | Converts a SizeF to a Size structure with truncated size values. |
| override ToString() | Creates a human-readable string that represents this SizeF. |
| operator + | Adds the width and height of one SizeF structure to the width and height of another SizeF structure. |
| operator == | Tests whether two SizeF structures are equal. |
| explicit operator | Converts the specified SizeF to a PointF. |
| operator != | Tests whether two SizeF structures are different. |
| operator - | Subtracts the width and height of one SizeF structure from the width and height of another SizeF structure. |
See Also