type property

Retrieves the type of the rule.

 

Syntax

HRESULT value = object.get_type(USHORT* p);

Property values

Type: unsigned short

the type of the rule. Binding-specific casting methods can be used to cast down from an instance of the IHTMLCSSRule interface to the specific derived interface implied by the IHTMLCSSRule::type.

STYLE_RULE (1)

The object is a style rule (a selector and a declaration block).

IMPORT_RULE (3)

The object is an @import rule.

MEDIA_RULE (4)

The object is an @media rule.

FONT_FACE_RULE (5)

The object is an @font-face rule.

PAGE_RULE (6)

The object is an @page rule.

NAMESPACE_RULE (7)

The object is an @namespace rule.

Standards information