Table of Contents

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

See also on MDN

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.0 and 1.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 max value is set then the value ranges between 0 and the max value.If the value property is not set on HTMLProgressElement object, then the progress bar remains indeterminate.

Remarks