[]
Initializes a new instance of the Length struct using a specified string length.
public Length(string length)
Type | Name | Description |
---|---|---|
string | length | A string value indicating the length, e.g., "1 cm", "10 pt". |
Initializes a new instance of the Length struct using a specified length and unit.
public Length(double originalLength, Length.Unit originalUnit)
Type | Name | Description |
---|---|---|
double | originalLength | A string value indicating the numeric value of the length. |
Length.Unit | originalUnit | A Length.Unit of measurement for the length. |