FromValueWithUnit
Contents
 [
        
            Hide
        ]
    FromValueWithUnit(float, Unit)
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 | 
Return Value
New instance of Length type
See Also
- enum Unit
 - struct Length
 - namespace GroupDocs.Editor.HtmlCss.Css.DataTypes
 - assembly GroupDocs.Editor
 
FromValueWithUnit(double, Unit)
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 | 
Return Value
New instance of Length type
See Also
- enum Unit
 - struct Length
 - namespace GroupDocs.Editor.HtmlCss.Css.DataTypes
 - assembly GroupDocs.Editor
 
FromValueWithUnit(int, Unit)
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 | 
Return Value
New instance of Length type
See Also
- enum Unit
 - struct Length
 - namespace GroupDocs.Editor.HtmlCss.Css.DataTypes
 - assembly GroupDocs.Editor