counterIncrement property

Sets or retrieves a list of counters to increment.

 

Syntax

HRESULT value = object.put_counterIncrement( v);HRESULT value = object.get_counterIncrement(* p);

Property values

Type: BSTR

a space-delimited list of counters, including one or both of the values in Possible Values.

identifier (identifier)

The name of the counter, optionally followed by an increment.

increment (increment)

An integer that indicates by how much the counter is incremented for every occurrence of the element. Zero and negative integers are allowed.

String format

[ <identifier> <integer> ]+

CSS information

Applies To All elements
Media visual
Inherited no
Initial Value

Standards information

Remarks

The IHTMLStyle6::counterIncrement attribute can contain a list of one or more counters, each one optionally followed by an integer. The integer represents the amount that the counter is incremented after each occurrence of an element.

This property is used to generate numbered content for each occurrence of an element. The counter need not be defined before it is incremented. To reset a counter value, use the IHTMLStyle6::counterReset attribute.

An element that is not displayed (IHTMLRuleStyle::display attribute set to 'none') and pseudo-elements that do not generate content (IHTMLStyle6::content attribute set to 'normal') cannot increment or reset a counter.

This property requires Windows Internet Explorer to be in IE8 Standards mode rendering.

Requirements

Minimum supported client

Windows XP with SP2

Minimum supported server

Windows Server 2003

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IHTMLStyle6::counterReset