IHTMLStyle interface
This interface provides access to the methods that are returned when you access the style object.
Members
The IHTMLStyle interface inherits from the IDispatch interface but does not have additional members.
Remarks
A style object represents the current settings of all possible inline styles for a given element. Inline styles are Cascading Style Sheets (CSS) assignments that an author applies directly to individual HTML elements using the IHTMLStyle attribute. You use the style object to examine these assignments and either make new assignments or change existing ones.
You retrieve the style object by using the IHTMLElement::style function. You retrieve the current setting for an inline style by calling member functions of the style object.
The style object does not give access to the style assignments in style sheets. You can use the IHTMLStyleSheetsCollection interface to gain access to the individual style sheets defined in the document.
Requirements
|
Minimum supported client | Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server | Windows 2000 Server [desktop apps only] |
|
Header |
|
|
IDL |
|
|
DLL |
|
See also
- Reference
- IHTMLStyle2
- IHTMLStyle3
- IHTMLStyle4
- IHTMLStyle5
Build date: 11/12/2012