IHTMLComputedStyle interface
Provides access to the current style of objects as they are displayed on the screen. Enables you to take a snapshot of the internal formatting of one object at a particular point in time, and compare it to the internal formatting of another object.
Members
The IHTMLComputedStyle interface inherits from the IUnknown interface. IHTMLComputedStyle also has these types of members:
- Methods
- Properties
Methods
The IHTMLComputedStyle interface has these methods.
Method | Description |
---|---|
IsEqual | Compares the internal formatting of two IHTMLComputedStyle objects. |
Properties
The IHTMLComputedStyle interface has these properties.
Property | Description |
---|---|
Gets the color behind the content in the object. |
|
Gets a value that indicates whether the content in a block element flows from left to right or from right to left. |
|
Gets a value that indicates whether text in the object is bold. |
|
Gets a value that indicates whether content in the object flows from left to right or from right to left. |
|
Gets a value that indicates whether a font family is specified for the text in the object. |
|
Gets the font family of the text in the object. |
|
Gets the size of the text in the object. |
|
Gets the weight of the text in the object. |
|
Gets a value that indicates whether a color is specified for the background of the object. |
|
Gets a value that indicates whether the text in the object is italic. |
|
Gets a value that indicates whether the object is an ordered list. |
|
Gets a value that indicates whether text in the object has a line drawn above it. |
|
Gets a value that indicates whether the text in the object is preformatted. |
|
Gets a value that indicates whether text in the object has a line drawn through it. |
|
Gets a value that indicates whether text in the object is rendered slightly below the baseline of surrounding text, typically in smaller type. |
|
Gets a value that indicates whether text in the object is rendered slightly above the surrounding text, typically in smaller type. |
|
Gets the color of the text in the object. |
|
Gets a value that indicates whether text in the object has a line drawn below it. |
Remarks
Use IDisplayServices::GetComputedStyle to get an IHTMLComputedStyle interface pointer.
Requirements
Minimum supported client |
Windows XP |
Minimum supported server |
Windows 2000 Server |
Header |
Mshtml.h |
IDL |
Mshtml.idl |
DLL |
Mshtml.dll |