ToStringSpecified
Length.ToStringSpecified method
Returns a string representation of this length in specified unit type. Numeric value will be converted in corresponding to unit type change.
public string ToStringSpecified(Unit unit)
| Parameter | Type | Description |
|---|---|---|
| unit | Unit | Specified unit, to which this instance should be converted before serializing to the string. Should be valid. Cannot be unitless. |
Return Value
String representation
Exceptions
| exception | condition |
|---|---|
| InvalidEnumArgumentException | Value is not defined |
| ArgumentOutOfRangeException | Unitless value is prohibited |
See Also
- enum Unit
- struct Length
- namespace GroupDocs.Editor.HtmlCss.Css.DataTypes
- assembly GroupDocs.Editor