Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

IHTMLElementDefaults::viewInheritStyle Property

Sets or retrieves a value that indicates whether the document fragment inherits the Cascading Style Sheets (CSS) styles set in the primary document.

Syntax


HRESULT IHTMLElementDefaults::get_viewInheritStyle(VARIANT_BOOL *p);HRESULT IHTMLElementDefaults::put_viewInheritStyle(VARIANT_BOOL v);

Parameters

p
Pointer to a variable of type VARIANT_BOOL that receives one of the values listed in Possible Values.
v
VARIANT_BOOL that specifies one of the values listed in Possible Values.

Possible Values

VARIANT_TRUE Default. Document fragment inherits CSS styles.
VARIANT_FALSE Document fragment does not inherit CSS styles.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

For more information on the CSS styles that can be inherited when IHTMLElementDefaults::viewInheritStyle is set to TRUE, see About Viewlink CSS Inheritance. Inheritable CSS styles are only applied to elements in the document fragment that do not already have the corresponding CSS styles defined.

See Also

Community Additions

Show:
© 2015 Microsoft