Class HTMLProgressElement
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The HTMLProgressElement interface provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of {{HTMLElement("progress")}} elements.
[Value("HTMLProgressElement")]
public class HTMLProgressElement : HTMLElement
- Inheritance
-
HTMLProgressElement
- Inherited Members
Remarks
-The HTML element implementing this interface: progress
Constructors
HTMLProgressElement()
public HTMLProgressElement()
Properties
Labels
The HTMLProgressElement.labels read-only property returns
a NodeList of the {{HTMLElement("label")}} elements associated with the
progress element.
[Value("labels")]
public NodeList Labels { get; }
Property Value
- NodeList
A NodeList containing the
<label>elements associated
with the<progress>element.
Remarks
Max
The max property of the HTMLProgressElement interface represents the upper bound of the {{HTMLElement("progress")}} element's range.
[Value("max")]
public Number Max { get; set; }
Property Value
- Number
A floating point number that is greater than zero. The default value is 1.0.
Remarks
Position
The position read-only property of the HTMLProgressElement interface returns current progress of the {{HTMLElement("progress")}} element.
[Value("position")]
public Number Position { get; }
Property Value
- Number
For determinate progress bar returns the result of current value divided by max value, i.e., a fraction between
0.0and1.0.For indeterminate progress bar the value is always-1.
Remarks
Value
The value property of the HTMLProgressElement interface represents the current progress of the {{HTMLElement("progress")}} element.
[Value("value")]
public Number Value { get; set; }
Property Value
- Number
A floating point number. If Max value is not set on the progress bar then value ranges between 0.0 and 1.0. If the
maxvalue is set then thevalueranges between0and themaxvalue.If thevalueproperty is not set on HTMLProgressElement object, then the progress bar remains indeterminate.