IHTMLStyleSheetRule

IHTMLStyleSheetRule


This interface provides access to the methods that are returned when you access styleSheet object.

This object is returned from the rules collection of a styleSheet. It represents a particular rule in a style sheet.

IHTMLStyleSheetRule Methods
put_selectorText   get_selectorText  
get_style   get_readOnly  

IHTMLStyleSheetRule::get_readOnly

HRESULT get_readOnly(
    VARIANT_BOOL *p 
);

Retrieves a Boolean value that indicates whether this rule is readOnly.

p
Address of a variable that receives TRUE if the attribute has a value of "readOnly", or FALSE if not. See readOnly for details.

IHTMLStyleSheetRule::get_selectorText

HRESULT get_selectorText(
    BSTR *p 
);

Retrieves the selection string for the style sheet rule.

p
Address of a string variable that receives the selection text.

See also put_selectorText

IHTMLStyleSheetRule::get_style

HRESULT get_style(
    IHTMLRuleStyle **p 
);

Retrieves an IHTMLRuleStyle pointer to the styleSheet object that contains this rule.

p
Address of a variable that receives an IHTMLRuleStyle interface pointer to the styleSheet object.

IHTMLStyleSheetRule::put_selectorText

HRESULT put_selectorText(
    BSTR v 
);

Currently not implemented.

See also get_selectorText

© 1997 Microsoft Corporation. All rights reserved. Terms of Use.