Size class
Size class
Represents size.
The Size type exposes the following members:
Constructors
Constructor | Description |
---|
init | Initializes a new instance of the Size structure from the specified Point . |
init | Initializes a new instance of the Size structure from the specified dimensions. |
init | Constructs a new instance of Size |
Properties
Property | Description |
---|
empty | Gets a new instance of the Size structure that has Size.width and Size.height values set to zero. |
is_empty | Gets a value indicating whether this Size has width and height of 0. |
width | Gets or sets the horizontal component of this Size . |
height | Gets or sets the vertical component of this Size . |
Methods
Method | Description |
---|
add | Adds the width and height of one Size structure to the width and height of another Size structure. |
ceiling | Converts the specified SizeF structure to a Size structure by rounding the values of the Size structure to the next higher integer values. |
subtract | Subtracts the width and height of one Size structure from the width and height of another Size structure. |
truncate | Converts the specified SizeF structure to a Size structure by truncating the values of the SizeF structure to the next lower integer values. |
round | Converts the specified SizeF structure to a Size structure by rounding the values of the SizeF structure to the nearest integer values. |
See Also