IHTMLRuleStyle interface
This interface provides access to the style properties of a single stylesheet rule. The properties are the same as those exposed by the IHTMLStyle interface.
Members
The IHTMLRuleStyle interface inherits from the IDispatch interface. IHTMLRuleStyle also has these types of members:
- Methods
- Properties
Methods
The IHTMLRuleStyle interface has these methods.
Method | Description |
---|---|
getAttribute | Retrieves the value of the specified attribute. |
removeAttribute | Removes an attribute from an object. |
setAttribute | Sets the value of the specified attribute. |
Properties
The IHTMLRuleStyle interface has these properties.
Property | Access type | Description |
---|---|---|
Specifies up to five separate background properties of an object. |
||
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 position of the background 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. |
||
Specifies the properties of a border drawn around an object. |
||
Specifies the properties of the bottom border of the object. |
||
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. |
||
Specifies the border color of the object. |
||
Specifies the properties of the left border 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 properties of the right 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 properties of the top border 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. |
||
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. |
||
Read/write |
Specifies which part of a positioned object is visible. |
|
The foreground color of the text of an object. |
||
Read/write |
Sets or retrieves the persisted representation of the style rule. |
|
Specifies the type of cursor to display as the mouse pointer moves over the object. |
||
Gets or sets a value that indicates whether and how the object is rendered. |
||
Sets or retrieves the filter or collection of filters that are applied to the object. |
||
Specifies a combination of separate IHTMLRuleStyle::font properties of the object. Alternatively, sets or retrieves one or more of six user-preference fonts. |
||
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. |
||
Specifies the weight of the font of the object. |
||
Sets or retrieves the height of the object. |
||
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. |
||
Sets or retrieves the distance between lines in the object. |
||
Sets or retrieves up to three separate IHTMLRuleStyle::listStyle properties of 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 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 on which side of the object the text will flow. |
||
Specifies whether the text in the object is left-aligned, right-aligned, centered, or justified. |
||
Specifies a value that indicates whether the text in the object has blink, line-through, overline, or underline decorations. |
||
Sets or retrieves a Boolean value that indicates whether the object's IHTMLRuleStyle::textDecoration property has a value of "blink." This property is not supported for Windows apps using JavaScript. |
||
Sets or retrieves a Boolean value indicating whether the text in the object has a line drawn through it. |
||
Sets or retrieves the Boolean value indicating whether the IHTMLRuleStyle::textDecoration property for the object has been set to none. |
||
Sets or retrieves a Boolean value indicating whether the text in the object has a line drawn over it. |
||
Sets or retrieves whether the text in the object is underlined. |
||
Specifies the indentation of the first line of text in the object. This property is not supported for Windows apps using JavaScript. |
||
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. |
||
Sets or retrieves the vertical alignment of the object. |
||
Sets or retrieves whether the content of the object is displayed. |
||
Specifies a value that indicates whether lines are automatically broken inside the object. |
||
Specifies the width of the object. |
||
Specifies the amount of additional space between words 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