Table of Contents

Class StylePropertyMapReadOnly

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The StylePropertyMapReadOnly interface of the CSS Typed Object Model API provides a read-only representation of a CSS declaration block that is an alternative to CSSStyleDeclaration. Retrieve an instance of this interface using 'Element.ComputedStyleMap'.

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

Remarks

Constructors

StylePropertyMapReadOnly()

public StylePropertyMapReadOnly()

Properties

this[int]

public string this[int i] { get; set; }

Parameters

i int

Property Value

string

Size

The size read-only property of the
StylePropertyMapReadOnly interface returns an unsigned long integer
containing the size of the StylePropertyMapReadOnly object.

[Value("size")]
public ulong Size { get; }

Property Value

ulong

An unsigned long integer.

Remarks

Methods

Get(string)

The get() method of the
StylePropertyMapReadOnly interface returns a CSSStyleValue
object for the first value of the specified property.

[Value("get")]
public Union8 Get(string property)

Parameters

property string

Returns

Union8

A CSSStyleValue object.

Remarks

GetAll(string)

The getAll() method of the
StylePropertyMapReadOnly interface returns an array of
CSSStyleValue objects containing the values for the provided property.

[Value("getAll")]
public List<CSSStyleValue> GetAll(string property)

Parameters

property string

Returns

List<CSSStyleValue>

An array of CSSStyleValue objects.

Remarks

Has(string)

The has() method of the
StylePropertyMapReadOnly interface indicates whether the specified
property is in the StylePropertyMapReadOnly object.

[Value("has")]
public bool Has(string property)

Parameters

property string

Returns

bool

A boolean value.

Remarks