Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
msGetRulesAppliedWithAncestor
Collapse the table of content
Expand the table of content

msGetRulesAppliedWithAncestor method

Returns a collection of rules from a previous call to IHTMLElementAppliedStyles::msGetRulesApplied or IHTMLElementAppliedStyles::msGetRulesAppliedWithAncestor on one of the element's ancestors. By making this call, you avoid recalculating styles from that ancestor on upwards.

Internet Explorer 9

 

Syntax


HRESULT retVal = object.msGetRulesAppliedWithAncestor(varContext, ppRulesAppliedCollection);

Parameters

varContext [in, optional]

Type: VARIANT

A previously calculated style collection.

Rules collection object

A rules collection of type IRulesAppliedCollection returned by a previous call to IHTMLElementAppliedStyles::msGetRulesApplied or IHTMLElementAppliedStyles::msGetRulesAppliedWithAncestor

NULL

Forces a new rules collection to be calculated.

ppRulesAppliedCollection [out, retval]

Type: IRulesAppliedCollection

A IRulesAppliedCollection object.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

If varContext is NULL, this method acts like IHTMLElementAppliedStyles::msGetRulesApplied.

 

 

Community Additions

ADD
Show:
© 2015 Microsoft