Gets the type of the rule.
HRESULT IHTMLCSSRule::get_type(USHORT *p);
- Pointer to a variable of type unsigned short that receives 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 type.
STYLE_RULE The object is a style rule (a selector and a declaration block). IMPORT_RULE The object is an @import rule. MEDIA_RULE The object is an @media rule. FONT_FACE_RULE The object is an @font-face rule. PAGE_RULE The object is an @page rule. NAMESPACE_RULE The object is an @namespace rule.
Returns S_OK if successful, or an error value otherwise.