This topic has not yet been rated - Rate this topic

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

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

Reference
IHTMLStyle2
IHTMLStyle3
IHTMLStyle4
IHTMLStyle5

 

 

Build date: 11/12/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.