Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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.

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.