Export (0) Print
Expand All

type property

Retrieves the type of the rule.

Document Object Model (DOM) Level 2 Style Specification, Section 2.2Internet Explorer 9

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

 

 

Community Additions

ADD
Show:
© 2014 Microsoft