Size Structure |
Namespace: Eto.Drawing
The Size type exposes the following members.
| Name | Description | |
|---|---|---|
| Size(Point) | ||
| Size(SizeF) |
Initializes a new Size with the truncated width and height of size.
| |
| Size(Int32, Int32) |
Initializes a new Size class with the specified width and height
|
| Name | Description | |
|---|---|---|
| Abs |
Returns the absolute width and height of the specified size | |
| Ceiling |
Converts a floating point size to an integral size by rounding the width and height to the
next integral value.
| |
| Contains(Point) | ||
| Contains(Int32, Int32) | ||
| Equals(Object) |
Compares this size to the specified obj (Overrides ValueTypeEquals(Object).) | |
| Equals(Size) |
Compares this size to the other size
| |
| FitTo |
Fits this size to the specified constraint, keeping the aspect
| |
| GetHashCode |
Gets the hash code for this Size
(Overrides ValueTypeGetHashCode.) | |
| Max |
Returns the maximum width and height of two sizes
| |
| Min |
Returns the minimum width and height of two sizes
| |
| Round |
Converts a floating point size to an integral size by rounding the width and height
| |
| ToString |
Converts this Size struct to a string
(Overrides ValueTypeToString.) | |
| Truncate |
Converts a floating point size to an integral size by truncating the width and height
|
| Name | Description | |
|---|---|---|
| Addition(Size, Point) | ||
| Addition(Size, Size) | ||
| Addition(Size, Int32) | ||
| Division(Size, Size) | ||
| Division(Size, Int32) | ||
| Equality |
Compares two sizes for equality
| |
| (Point to Size) |
Explicit conversion from a point to a Size with a Width and Height of the X and Y values of the point, respectively
| |
| (SizeF to Size) |
Explicit conversion from a SizeF to a Size by truncating values
| |
| Inequality |
Compares two sizes for inequality
| |
| Multiply(Int32, Size) | ||
| Multiply(Size, Size) | ||
| Multiply(Size, Int32) | ||
| Multiply(Size, Single) | ||
| Subtraction(Size, Point) | ||
| Subtraction(Size, Size) | ||
| Subtraction(Size, Int32) | ||
| UnaryNegation |
Negates the Width and Height of the specified size value
|
| Name | Description | |
|---|---|---|
| Empty |
Gets an empty size with a zero width and height
| |
| MaxValue |
Size with width and height with a maximum int value
| |
| MinValue |
Size with width and height with a minimum int value
|