Size Structure
Assembly: System.Drawing (in System.Drawing.dll)
| Name | Description | |
|---|---|---|
![]() | Size(Int32, Int32) | Initializes a new instance of the Size structure from the specified dimensions. |
![]() | Size(Point) | Initializes a new instance of the Size structure from the specified Point structure. |
| Name | Description | |
|---|---|---|
![]() ![]() | Add(Size, Size) | Adds the width and height of one Size structure to the width and height of another Size structure. |
![]() ![]() | Ceiling(SizeF) | Converts the specified SizeF structure to a Size structure by rounding the values of the Size structure to the next higher integer values. |
![]() | Equals(Object^) | Tests to see whether the specified object is a Size structure with the same dimensions as this Size structure.(Overrides ValueType::Equals(Object^).) |
![]() | GetHashCode() | Returns a hash code for this Size structure.(Overrides ValueType::GetHashCode().) |
![]() | GetType() | |
![]() ![]() | Round(SizeF) | |
![]() ![]() | Subtract(Size, Size) | Subtracts the width and height of one Size structure from the width and height of another Size structure. |
![]() | ToString() | Creates a human-readable string that represents this Size structure.(Overrides ValueType::ToString().) |
![]() ![]() | Truncate(SizeF) |
| Name | Description | |
|---|---|---|
![]() ![]() | Addition(Size, Size) | Adds the width and height of one Size structure to the width and height of another Size structure. |
![]() ![]() | Equality(Size, Size) | Tests whether two Size structures are equal. |
![]() ![]() | Explicit(Size to Point) | Converts the specified Size structure to a Point structure. |
![]() ![]() | Implicit(Size to SizeF) | Converts the specified Size structure to a SizeF structure. |
![]() ![]() | Inequality(Size, Size) | Tests whether two Size structures are different. |
![]() ![]() | Subtraction(Size, Size) | Subtracts the width and height of one Size structure from the width and height of another Size structure. |
The Size class is used to specify a height and width through the Size property for Rectangle, RectangleF, Image, Icon and other graphics classes. You can perform operations on a Size by using the overloaded operators such as Addition, Subtraction, and Equality. The unit for the Height and Width of the Size structure depend on the PageUnit and PageScale settings for the Graphics object that is used to draw.
Available since 1.1
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.




