Table of Contents

Class HTMLOListElement

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The HTMLOListElement interface provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating ordered list elements.

[Value("HTMLOListElement")]
public class HTMLOListElement : HTMLElement
Inheritance
HTMLOListElement
Inherited Members

Remarks

-The HTML element implementing this interface: ol.

See also on MDN

Constructors

HTMLOListElement()

public HTMLOListElement()

Properties

Compact

IMPORTANT
Deprecated
The compact property of the HTMLOListElement interface indicates that spacing between list items should be reduced. The exact handling of the compact attribute is browser-specific. Instead of using this property, consider using CSS line-height instead.
[Value("compact")]
public bool Compact { get; set; }

Property Value

bool

A boolean.

Remarks

It reflects the compact attribute of the ol element.

See also on MDN

Reversed

The reversed property of the HTMLOListElement interface indicates order of a list.

[Value("reversed")]
public bool Reversed { get; set; }

Property Value

bool

A boolean value. If true, it indicates that the list is a descending list (..., 3, 2, 1).

Remarks

It reflects the reversed attribute of the ol element.

See also on MDN

Start

The start property of the HTMLOListElement interface indicates starting value of the ordered list, with default value of 1.

[Value("start")]
public long Start { get; set; }

Property Value

long

A long value.

Remarks

It reflects the start attribute of the ol element.

NOTE

The start property value is independent of the Type property; it is always numeric, even when type is letters or Roman numerals.

See also on MDN

Type

The type property of the HTMLOListElement interface indicates the kind of marker to be used to display ordered list.

[Value("type")]
public string Type { get; set; }

Property Value

string

A string representing the type.Its possible values are listed in the attribute marker types section.

Remarks

It reflects the type attribute of the ol element.

NOTE

The type can be defined in CSS with the list-style-type property. The list-style-type property provides many more values.

See also on MDN