Table of Contents

Class CSSStyleValue

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The CSSStyleValue interface of the CSS Typed Object Model API is the base class of all CSS values accessible through the Typed OM API. An instance of this class may be used anywhere a string is expected.

[Value("CSSStyleValue")]
public class CSSStyleValue
Inheritance
CSSStyleValue
Derived
Inherited Members

Remarks

Constructors

CSSStyleValue()

public CSSStyleValue()

Methods

Parse(string, string)

The parse() static method of the CSSStyleValue
interface sets a specific CSS property to the specified values and returns the first
value as a 'CSSStyleValue' object.

[Value("parse")]
public static CSSStyleValue Parse(string property, string cssText)

Parameters

property string
cssText string

Returns

CSSStyleValue

A CSSStyleValue object containing the first supplied value.

Remarks

ParseAll(string, string)

The parseAll() static method of the CSSStyleValue
interface sets all occurrences of a specific CSS property to the specified value and
returns an array of 'CSSStyleValue' objects, each containing one of the
supplied values.

[Value("parseAll")]
public static List<CSSStyleValue> ParseAll(string property, string cssText)

Parameters

property string
cssText string

Returns

List<CSSStyleValue>

An array of CSSStyleValue objects, each containing one of the supplied
values.

Remarks