Export (0) Print
Expand All

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

The IHTMLComputedStyle interface has these methods.

MethodDescription
IsEqual

Compares the internal formatting of two IHTMLComputedStyle objects.

 

Properties

The IHTMLComputedStyle interface has these properties.

PropertyDescription

backgroundColor

Gets the color behind the content in the object.

blockDirection

Gets a value that indicates whether the content in a block element flows from left to right or from right to left.

bold

Gets a value that indicates whether text in the object is bold.

direction

Gets a value that indicates whether content in the object flows from left to right or from right to left.

explicitFace

Gets a value that indicates whether a font family is specified for the text in the object.

fontName

Gets the font family of the text in the object.

fontSize

Gets the size of the text in the object.

fontWeight

Gets the weight of the text in the object.

hasBgColor

Gets a value that indicates whether a color is specified for the background of the object.

italic

Gets a value that indicates whether the text in the object is italic.

OL

Gets a value that indicates whether the object is an ordered list.

overline

Gets a value that indicates whether text in the object has a line drawn above it.

preFormatted

Gets a value that indicates whether the text in the object is preformatted.

strikeOut

Gets a value that indicates whether text in the object has a line drawn through it.

subScript

Gets a value that indicates whether text in the object is rendered slightly below the baseline of surrounding text, typically in smaller type.

superScript

Gets a value that indicates whether text in the object is rendered slightly above the surrounding text, typically in smaller type.

textColor

Gets the color of the text in the object.

underline

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 [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

 

 

Community Additions

ADD
Show:
© 2014 Microsoft