Table of Contents

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

value Number
unit string

Remarks

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

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