top
Expand Minimize

counterIncrement property

Sets or retrieves a list of counters to increment.

CSS 2.1, Section 12.4Internet Explorer 8

 

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 ToAll elements
Mediavisual
Inheritedno
Initial Value

Standards information

Remarks

The IHTMLCSSStyleDeclaration::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 IHTMLCSSStyleDeclaration::counterReset attribute.

An element that is not displayed (IHTMLCSSStyleDeclaration::display attribute set to 'none') and pseudo-elements that do not generate content (IHTMLCSSStyleDeclaration::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 [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IHTMLCSSStyleDeclaration::counterReset

 

 

Community Additions

ADD
Show:
© 2014 Microsoft