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.
Constructors
HTMLOListElement()
public HTMLOListElement()
Properties
Compact
IMPORTANT
Deprecatedcompact 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
Reversed
The reversed property of the HTMLOListElement interface indicates order of a list.
[Value("reversed")]
public bool Reversed { get; set; }
Property Value
- bool
A
booleanvalue. Iftrue, it indicates that the list is a descending list (..., 3, 2, 1).
Remarks
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
longvalue.
Remarks
It reflects the start attribute of the ol element.
NOTE
The
startproperty value is independent of the Type property; it is always numeric, even when type is letters or Roman numerals.
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
typecan be defined in CSS with the list-style-type property. Thelist-style-typeproperty provides many more values.