IHTMLCurrentStyle interface
Provides the ability to programmatically access the style properties of the element.
Members
The IHTMLCurrentStyle interface inherits from the IDispatch interface. IHTMLCurrentStyle also has these types of members:
- Methods
- Properties
Methods
The IHTMLCurrentStyle interface has these methods.
Method | Description |
---|---|
getAttribute | Retrieves the value of the specified attribute. |
Properties
The IHTMLCurrentStyle interface has these properties.
Property | Access type | Description |
---|---|---|
Sets or retrieves a string that indicates whether the object represents a keyboard shortcut. |
||
Specifies how the background image (or images) is attached to the object within the document. |
||
Specifies the color behind the content of the object. |
||
Specifies the background image or images of the object. |
||
Specifies the x-coordinate of the IHTMLRuleStyle::backgroundPosition property. |
||
Specifies the y-coordinate of the IHTMLRuleStyle::backgroundPosition property. |
||
Specifies whether and how the background image (or images) is tiled. |
||
Sets or retrieves the location of the Dynamic HTML (DHTML) behaviorDHTML Behaviors. |
||
Gets a string value that indicates whether the content in the block element flows from left to right, or from right to left. |
||
Specifies the foreground color of the bottom border of an object. |
||
Specifies the style of the bottom border of the object. |
||
Specifies the thickness of the bottom border of the object. |
||
Indicates whether the row and cell borders of a table are joined in a single border or detached as in standard HTML. |
||
Specifies the border color of the object. |
||
Specifies the foreground color of the left border of an object. |
||
Sets or retrieves the style of the left border of the object. |
||
Specifies the thickness of the left border of the object. |
||
Specifies the foreground color of the right border of an object. |
||
Specifies the style of the right border of the object. |
||
Specifies the thickness of the right border of the object. |
||
Specifies the style of the left, right, top, and bottom borders of the object. |
||
Specifies the foreground color of the top border of an object. |
||
Specifies the style of the top border of the object. |
||
Specifies the thickness of the top border of the object. |
||
Specifies the thicknesses of the left, right, top, and bottom borders of an object. |
||
Sets or retrieves the bottom position of the object in relation to the bottom of the next positioned object in the document hierarchy. |
||
Specifies whether the object allows floating objects on its left side, right side, or both, so that the next text displays past the floating objects. |
||
Gets the bottom coordinate of the object clipping region. |
||
Gets the left coordinate of the object clipping region. |
||
Gets the right coordinate of the object clipping region. |
||
Read-only |
Gets the top coordinate of the object clipping region. |
|
The foreground color of the text of an object. |
||
Specifies the type of cursor to display as the mouse pointer moves over the object. |
||
Specifies the reading order of the object. |
||
Gets or sets a value that indicates whether and how the object is rendered. |
||
Specifies the name of the font used for text in the object. |
||
Specifies a value that indicates the font size used for text in the object. |
||
Specifies the font style of the object as italic, normal, or oblique. |
||
Specifies whether the text of the object is in small capital letters. |
||
Gets the numeric weight of the font of the object. |
||
Sets or retrieves the height of the object. |
||
Specifies the state of an IME. |
||
Specifies the size of the character grid used for rendering the text content of an element. |
||
Specifies the gridline value used for rendering the text content of an element. |
||
Specifies whether the text layout grid uses two dimensions. |
||
Specifies the type of grid used for rendering the text content of an element. |
||
Sets or retrieves the position of the object relative to the left edge of the next positioned object in the document hierarchy. |
||
Specifies the amount of additional space between letters in the object. |
||
Specifies line-breaking rules for text in selected languages such as Japanese, Chinese, and Korean. |
||
Sets or retrieves the distance between lines in the object. |
||
Sets or retrieves a value that indicates which image to use as a list-item marker for the object. |
||
Sets or retrieves a variable that indicates how the list-item marker is drawn relative to the content of the object. |
||
Sets or retrieves the predefined type of the line-item marker for the object. |
||
Sets or retrieves the width of the top, right, bottom, and left margins of the object. |
||
Sets or retrieves the height of the bottom margin of the object. |
||
Sets or retrieves the width of the left margin of the object. |
||
Sets or retrieves the width of the right margin of the object. |
||
Sets or retrieves the height of the top margin of the object. |
||
Sets or retrieves a value indicating how to manage the content of the object when the content exceeds the height or width of the object. |
||
Sets or retrieves how to manage the content of the object when the content exceeds the width of the object. |
||
Sets or retrieves how to manage the content of the object when the content exceeds the height of the object. |
||
Sets or retrieves the amount of space to insert between the object and its margin or, if there is a border, between the object and its border. |
||
Sets or retrieves the amount of space to insert between the bottom border of the object and the content. |
||
Sets or retrieves the amount of space to insert between the left border of the object and the content. |
||
Sets or retrieves the amount of space to insert between the right border of the object and the content. |
||
Sets or retrieves the amount of space to insert between the top border of the object and the content. |
||
Sets or retrieves a value indicating whether a page break occurs after the object. |
||
Defines whether a page break occurs before the object. |
||
Sets or retrieves the type of positioning used for the object. |
||
Sets or retrieves the position of the object relative to the right edge of the next positioned object in the document hierarchy. |
||
Gets or sets a value that indicates how to align the ruby text content. |
||
Gets or sets a value that indicates whether, and on which side, ruby text is allowed to partially overhang any adjacent text in addition to its own base, when the ruby text is wider than the ruby base |
||
Gets or sets a value that controls the position of the ruby text with respect to its base. |
||
Sets or retrieves on which side of the object the text will flow. |
||
Sets or retrieves a string that indicates whether the table layout is fixed. |
||
Specifies whether the text in the object is left-aligned, right-aligned, centered, or justified. |
||
Specifies the autospacing and narrow space width adjustment of text. |
||
Specifies a value that indicates whether the text in the object has blink, line-through, overline, or underline decorations. |
||
Specifies the indentation of the first line of text in the object. This property is not supported for Windows apps using JavaScript. |
||
Specifies the type of alignment used to justify text in the object. |
||
Specifies the rendering of the text in the object. |
||
Sets or retrieves the position of the object relative to the top of the next positioned object in the document hierarchy. |
||
Read/write |
Specifies the level of embedding with respect to the bidirectional algorithm. |
|
Sets or retrieves the vertical alignment of the object. |
||
Sets or retrieves whether the content of the object is displayed. |
||
Specifies the width of the object. |
||
Specifies line-breaking behavior within words, particularly where multiple languages appear in the object. |
||
Sets or retrieves the stacking order of positioned objects. |
Requirements
Minimum supported client |
Windows XP |
Minimum supported server |
Windows 2000 Server |
Header |
Mshtml.h |
IDL |
Mshtml.idl |
DLL |
Mshtml.dll |
See also
Reference