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

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

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

Community Additions

Show:
© 2014 Microsoft. All rights reserved.