FromValueWithUnit
Leave feedback
On this page
Creates and returns an instance of Length type by specified float number and unit
public static Length FromValueWithUnit(float value, Unit unit)
| Parameter | Type | Description |
|---|---|---|
| value | Single | >Any float (FP32) number |
| unit | Unit | Any valid unit type |
New instance of Length type
- enum Unit
- struct Length
- namespace GroupDocs.Editor.HtmlCss.Css.DataTypes
- assembly GroupDocs.Editor
Creates and returns an instance of Length type by specified double number and unit
public static Length FromValueWithUnit(double value, Unit unit)
| Parameter | Type | Description |
|---|---|---|
| value | Double | Any double (FP64) number, that will be converted to float (FP32) |
| unit | Unit | Any valid unit type |
New instance of Length type
- enum Unit
- struct Length
- namespace GroupDocs.Editor.HtmlCss.Css.DataTypes
- assembly GroupDocs.Editor
Creates and returns an instance of Length type by specified integer number and unit
public static Length FromValueWithUnit(int value, Unit unit)
| Parameter | Type | Description |
|---|---|---|
| value | Int32 | Any integer number |
| unit | Unit | Any valid unit type |
New instance of Length type
- 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.