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.

 

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.