GetUnitFromName
Leave feedback
On this page
Tries to parse specified unit name and return corresponding value of a Unit enum. Returns Unit.Unitless if cannot find appropriate unit.
public static Unit GetUnitFromName(string unitName)
| Parameter | Type | Description |
|---|---|---|
| unitName | String | String, that represents a unit name |
Value of Unit enum in any case, Unit.Unitless when cannot find appropriate unit
- enum Unit
- struct Length
- namespace GroupDocs.Editor.HtmlCss.Css.DataTypes
- assembly GroupDocs.Editor
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.