Class CSSUnitValue
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The CSSUnitValue interface of the CSS Typed Object Model API represents values that contain a single unit type. For example, "42px" would be represented by a CSSNumericValue.
[Value("CSSUnitValue")]
public class CSSUnitValue : CSSNumericValue
- Inheritance
-
CSSUnitValue
- Inherited Members
Remarks
Constructors
CSSUnitValue()
public CSSUnitValue()
CSSUnitValue(Number, string)
The CSSUnitValue() constructor creates a
new CSSUnitValue object which returns a new 'CSSUnitValue'
object which represents values that contain a single unit type. For example, "42px"
would be represented by a CSSNumericValue.
public CSSUnitValue(Number value, string unit)
Parameters
Remarks
-'CSSUnitValue.Unit'
-'CSSUnitValue.Value'
-Using the CSS Typed OM
-CSS Typed Object Model API
Properties
Unit
The CSSUnitValue.unit read-only property
of the CSSUnitValue interface returns a string
indicating the type of unit.
[Value("unit")]
public string Unit { get; }
Property Value
- string
A string.
Remarks
-'CSSUnitValue.Value'
-Dimensions in CSS values and units
-Using the CSS Typed OM
-CSS Typed Object Model API
Value
The CSSUnitValue.value property of the
CSSUnitValue interface returns a double indicating the number of units.
[Value("value")]
public Number Value { get; set; }
Property Value
- Number
A double.
Remarks
-'CSSUnitValue.Unit'
-Using the CSS Typed OM
-CSS Typed Object Model API