Summary
Defines a size.
Syntax
public readonly struct Size : ValueType, IEquatable<Size>
Constructors
Name | Summary |
---|---|
Size |
Initializes a new instance of the Size structure.
|
Fields
Properties
Name | Value | Summary |
---|---|---|
AspectRatio | double |
Gets the aspect ratio of the size.
|
Height | double |
Gets the height.
|
IsDefault | bool |
Gets a value indicating whether the Width and Height values are zero.
|
Width | double |
Gets the width.
|
Methods
Name | Value | Summary |
---|---|---|
Constrain |
Size |
Constrains the size.
|
Deconstruct |
void |
Deconstructs the size into its Width and Height values.
|
Deflate |
Size |
Deflates the size by a
Thickness .
|
Equals |
bool |
Checks for equality between a size and an object.
|
Equals |
bool |
Returns a boolean indicating whether the size is equal to the other given size (bitwise).
|
GetHashCode |
int |
Returns a hash code for a
Size .
|
Inflate |
Size |
Inflates the size by a
Thickness .
|
NearlyEquals |
bool |
Returns a boolean indicating whether the size is equal to the other given size (numerically).
|
Parse |
Size |
Parses a
Size string.
static
|
ToString |
string |
Returns the string representation of the size.
|
WithHeight |
Size |
Returns a new
Size with the same width and the specified height.
|
WithWidth |
Size |
Returns a new
Size with the same height and the specified width.
|