![]() | Size Structure |
Struct that represents a size that is based on a width and height of type Length.
Constructs from standard paper sizes, generates a string representation, and sets portrait and landscape mode.
public struct Size
The Size type exposes the following members.
Name | Description | |
---|---|---|
![]() | AspectRatio | Calculate ratio between height and width. |
![]() | Height | Get the height (vertical size) as Length object. |
![]() | Width | Get the width (horizontal size) as Length object. |
![]() ![]() | Zero |
Name | Description | |
---|---|---|
![]() ![]() | cm | Create a Size object with the unit of height and width centimetre (symbol cm, equal to 0.01m). |
![]() | Equals | (Overrides ValueTypeEquals(Object)) |
![]() ![]() | FromLengths | Create a Size object with the height and width as Length objects. |
![]() | GetHashCode | (Overrides ValueTypeGetHashCode) |
![]() ![]() | in | Create a Size object with the unit of height and width inch (symbol in, equal to 25.4mm or 72pt). |
![]() ![]() | km | Create a Size object with the unit of height and width kilometre (symbol km, equal to 1000m). |
![]() ![]() | m | Create a Size object with the unit of height and width metre (symbol m, is the SI unit of length). |
![]() ![]() | mm | Create a Size object with the unit of height and width millimetre (symbol mm, equal to 0.001m). |
![]() ![]() | Parse | Create a Size object from length measurements or standard paper sizes. |
![]() ![]() | pt | Create a Size object with the unit of height and width point (symbol pt, is the default unit used in PDF documents, equal to 1/72in or 25.4/72mm). |
![]() | ToLandscape | Switches width and height if the absolute value of height is greater than the the absolute value of width. |
![]() | ToPortrait | Switches width and height if the absolute value of the width is greater than the absolute value of the height. |
![]() | ToString |
Creates a string representation as width-height-pair with associated suitable metric units, "m", "cm" or "mm".
(Overrides ValueTypeToString) |
![]() ![]() | um | Create a Size object with the unit of height and width micrometre (symbol um, equal to 0.000001m). |