Size class

Size class

Represents a size.

The Size type exposes the following members:

Constructors

Constructor Description
init Initializes a new instance of the Size class with the specified dimensions.

Methods

Method Description
parse Converts the string representation of a size to its class equivalent.
to_string Converts the value of this instance to a string.
try_parse Converts the string representation of a size to its class equivalent.

Properties

Property Description
height The height in pixels.
is_empty The size is empty.
width The width in pixels as a float.

See Also