Click to return to the Reusing Browser Technology home page    
IHTMLRectCollection::item...     IHTMLRuleStyle::get_backg...     Interfaces and Scripting ...    
Web Workshop  |  Reusing Browser Technology

IHTMLRuleStyle Interface


This interface provides access to the methods that are returned when you access the style property of a rule. This serves the same purpose as the IHTMLStyle interface, but it is specifically for a rule.

IHTMLRuleStyle Methods

get_background Retrieves the value of the background attribute for the element.
get_backgroundAttachment Retrieves the value of the background-attachment attribute for the element.
get_backgroundColor Retrieves the value of the background-color attribute for the element.
get_backgroundImage Retrieves the value of the background-image attribute for the element.
get_backgroundPosition Retrieves the value of the background-position attribute for the element.
get_backgroundPositionX Retrieves the x-coordinate of the background-position attribute for the element.
get_backgroundPositionY Retrieves the y-coordinate of the background-position attribute for the element.
get_backgroundRepeat Retrieves the value of the background-repeat attribute for the element.
get_border Retrieves the value of the border attribute for the element.
get_borderBottom Retrieves the value of the border-bottom attribute for the element.
get_borderBottomColor Retrieves the value of the border-bottom-color attribute for the element.
get_borderBottomStyle Retrieves the value of the border-bottom-style attribute for the element.
get_borderBottomWidth Retrieves the value of the border-bottom-width attribute for the element.
get_borderColor Retrieves the value of the border-color attribute of the element. The border color must be used with the border property, except for frames. The color can be one of the names or values given in the Color Table.
get_borderLeft Retrieves the value of the border-left attribute for the element.
get_borderLeftColor Retrieves the value of the border-left-color attribute for the element.
get_borderLeftStyle Retrieves the value of the border-left-style attribute for the element.
get_borderLeftWidth Retrieves the value of the border-left-width attribute for the element.
get_borderRight Retrieves the value of the border-right attribute for the element.
get_borderRightColor Retrieves the value of the border-right-color attribute for the element.
get_borderRightStyle Retrieves the value of the border-right-style attribute for the element.
get_borderRightWidth Retrieves the value of the border-right-width attribute for the element.
get_borderStyle Retrieves the value of the border-style attribute for the element.
get_borderTop Retrieves the value of the border-top attribute for the element.
get_borderTopColor Retrieves the value of the border-top-color attribute for the element.
get_borderTopStyle Retrieves the value of the border-top-style attribute for the element.
get_borderTopWidth Retrieves the value of the border-top-width attribute for the element.
get_borderWidth Retrieves the value of the border-width attribute for the element.
get_clear Retrieves the value of the clear attribute for the element.
get_clip Retrieves the value of the clip attribute for the element.
get_color Retrieves the value of the color attribute for the element.
get_cssText Retrieves the persisted representation of the style rule.
get_cursor Retrieves the value of the cursor attribute for the element.
get_display Retrieves the value of the display attribute for the element.
get_filter Retrieves a filter or collection of filters for the element.
get_font Retrieves the values of the font-style, font-variant, font-weight, font-size, line-height, and font-family attributes for the element.
get_fontFamily Retrieves the value of the font-family attribute for the element.
get_fontSize Retrieves the value of the font-size attribute for the element.
get_fontStyle Retrieves the value of the font-style attribute for the element.
get_fontVariant Retrieves the value of the font-variant attribute for the element.
get_fontWeight Retrieves the value of the font-weight attribute for the element.
get_height Retrieves the value of the height attribute for the element.
get_left Retrieves the value of the left attribute for the element.
get_letterSpacing Retrieves the value of the letter-spacing for the element.
get_lineHeight Retrieves the value of the line-height attribute for the element.
get_listStyle Retrieves the value of the list-style attribute for the element.
get_listStyleImage Retrieves the value of the list-style-image attribute for the element.
get_listStylePosition Retrieves the value of the list-style-position attribute for the element.
get_listStyleType Retrieves the value of the list-style-type attribute for the element.
get_margin Retrieves the value of the margin attribute for the element.
get_marginBottom Retrieves the value of the margin-bottom attribute for the element.
get_marginLeft Retrieves the value of the margin-left attribute for the element.
get_marginRight Retrieves the value of the margin-right attribute for the element.
get_marginTop Retrieves the value of the margin-top attribute for the element.
get_overflow Retrieves the value of the overflow attribute for the element.
get_padding Retrieves the value of the padding attribute for the element in pixels.
get_paddingBottom Retrieves the value of the padding-bottom attribute for the element in pixels.
get_paddingLeft Retrieves the value of the padding-left attribute for the element in pixels.
get_paddingRight Retrieves the value of the padding-right attribute for the element, in pixels.
get_paddingTop Retrieves the value of the padding-top attribute for the element in pixels.
get_pageBreakAfter Retrieves the value of the page-break-after attribute for the element.
get_pageBreakBefore Retrieves the value of the page-break-before attribute for the element.
get_position Retrieves the value of the position attribute for the element.
get_styleFloat Retrieves the value of the float attribute for the element.
get_textAlign Retrieves the value of the text-align attribute for the element.
get_textDecoration Retrieves the value of the text-decoration attribute for the element.
get_textDecorationBlink Retrieves the value that indicates whether the element's text-decoration attribute has a value of blink.
get_textDecorationLineThrough Retrieves the value that indicates whether the element's text-decoration attribute has a value of line-through.
get_textDecorationNone Retrieves the value that indicates whether the element's text-decoration attribute has a value of none.
get_textDecorationOverline Retrieves the value that indicates whether the element's text-decoration attribute has a value of overline.
get_textDecorationUnderline Retrieves the value that indicates whether the element's text-decoration attribute has a value of underline.
get_textIndent Retrieves the value of the text-indent attribute for the element.
get_textTransform Retrieves the value of the text-transform attribute for the element.
get_top Retrieves the value of the top attribute for the element.
get_verticalAlign Retrieves the value of the vertical-align attribute for the element.
get_visibility Retrieves the value of the visibility attribute for the element.
get_whiteSpace Retrieves the value of the WHITESPACE attribute for the element.
get_width Retrieves the value of the width attribute for the element.
get_wordSpacing Retrieves the value of the word-spacing attribute for the element.
get_zIndex Retrieves the value of the z-index attribute for the element.
getAttribute Retrieves the value of the given attribute.
put_background Sets the value of the background attribute for the element.
put_backgroundAttachment Sets the value of the background-attachment attribute for the element. If the element has a background image, this attribute determines if the image is fixed with regard to the text of the element, or if it scrolls with the text.
put_backgroundColor Sets the background-color attribute for the element.
put_backgroundImage Sets the background-image attribute for the element.
put_backgroundPosition Sets the value of the background-position attribute for the element. The attribute determines the initial position of the background image, if any.
put_backgroundPositionX Sets the x-coordinate of the background-position attribute for the element. The attribute determines the initial horizontal position of the background image, if any.
put_backgroundPositionY Sets the y-coordinate of the background-position attribute for the element. The attribute determines the initial vertical position of the background image, if any.
put_backgroundRepeat Sets the value of the background-repeat attribute for the element. The attribute determines whether and how the background image, if any, is repeated.
put_border Sets the value of the border attribute for the element. The attribute describes the color, style, and width of the border to display around the element.
put_borderBottom Sets the value of the border-bottom attribute for the element.
put_borderBottomColor Sets the value of the border-bottom-color attribute for the element. The attribute determines the color of the element's bottom border.
put_borderBottomStyle Sets the value of the border-bottom-style attribute for the element. The attribute determines the style of the bottom border.
put_borderBottomWidth Sets the value of the border-bottom-width attribute for the element. The attribute determines the width of the bottom border.
put_borderColor Sets the value of the border-color attribute for the element. The attribute determines the color of the element's four borders.
put_borderLeft Sets the value of the border-left attribute for the element.
put_borderLeftColor Sets the value of the border-left-color attribute for the element. The attribute determines the color of the element's left border.
put_borderLeftStyle Sets the value of the border-left-style attribute for the element. The attribute determines the style of the left border.
put_borderLeftWidth Sets the value of the border-left-width attribute for the element. The attribute determines the width of the left border.
put_borderRight Sets the value of the border-right attribute for the element.
put_borderRightColor Sets the value of the border-right-color attribute for the element. The attribute determines the color of the element's right border.
put_borderRightStyle Sets the value of the border-right-style attribute for the element. The attribute determines the style of the right border.
put_borderRightWidth Sets the value of the border-right-width attribute for the element. The attribute determines the width of the right border.
put_borderStyle Sets the value of the border-style attribute for the element. The attribute determines the style of the left, right, top, and bottom borders.
put_borderTop Sets the value of the border-top attribute for the element. The attribute determines the width, style, and color of the top border.
put_borderTopColor Sets the value of the border-top-color attribute for the element. The attribute determines the color of the element's top border.
put_borderTopStyle Sets the value of the border-top-style attribute for the element. The attribute determines the style of the top border.
put_borderTopWidth Sets the value of the border-top-width attribute for the element. The attribute determines the width of the top border.
put_borderWidth Sets the value of the border-width attribute for the element. The attribute determines the width of the left, right, top, and bottom borders.
put_clear Sets the value of the clear attribute for the element.
put_clip Sets the value of the clip attribute for the element. The attribute determines which part of the element is visible. Any part of the element that is outside the clipping area is transparent.
put_color Sets the color attribute for the element.
put_cssText Sets the persisted representation of the style rule.
put_cursor Sets the value of the cursor attribute for the element. The attribute determines the type of cursor to display when the mouse is over the element.
put_display Sets the value of the display attribute for the element. The attribute determines whether the element is rendered.
put_filter Sets a filter or collection of filters for the element.
put_font Sets the value of the font-style, font-variant, font-weight, font-size, line-height, and font-family attributes for the element.
put_fontFamily Sets the value of the font-family attribute for the element.
put_fontSize Sets the value of the font-size attribute for the element.
put_fontStyle Sets the value of the font-style attribute for the element.
put_fontVariant Sets the value of the font-variant attribute for the element.
put_fontWeight Sets the value of the font-weight attribute for the element.
put_height Sets the value of the height attribute for the element. The attribute determines the element's height.
put_left Sets the value of the left attribute for the element. The attribute determines the left position of the element.
put_letterSpacing Sets the value of the letter-spacing attribute for the element. The attribute determines the amount of space to add to the default space between letters in the element's text.
put_lineHeight Sets the value of the line-height attribute for the element.
put_listStyle Sets the value of the list-style attribute for the element. The attribute determines how a list-item marker is drawn.
put_listStyleImage Sets the value of the list-style-image attribute for the element. The attribute sets the image to use as the list-item marker. When the image is available, it replaces the marker.
put_listStylePosition Sets the value of the list-style-position attribute for the element.
put_listStyleType Sets the value of the list-style-type attribute for the element.
put_margin Sets the value of the margin attribute for the element. The attribute sets the top, right, bottom, and left margins for the text of the element.
put_marginBottom Sets the value of the margin-bottom attribute for the element. The attribute determines the height of the bottom margin for the element.
put_marginLeft Sets the value of the margin-left attribute for the element. The attribute determines the width of the left margin for the element.
put_marginRight Sets the value of the margin-right attribute for the element. The attribute determines the width of the right margin for the element.
put_marginTop Sets the value of the margin-top attribute for the element. The attribute determines the height of the top margin for the element.
put_overflow Sets the value of the overflow attribute for the element.
put_padding Sets the value of the padding attribute for the element in pixels. The attribute determines the amount of space between the border and the element's content.
put_paddingBottom Sets the value of the padding-bottom attribute for the element in pixels.
put_paddingLeft Sets the value of the padding-left attribute for the element in pixels. The attribute determines the amount of space between the border and the left of the element's content.
put_paddingRight Sets the value of the padding-right attribute for the element, in pixels.
put_paddingTop Sets the value of the padding-top attribute for the element in pixels.
put_pageBreakAfter Sets the value of the page-break-after attribute for the element. The attribute determines whether a page break occurs after the element and on what page the subsequent content should resume.
put_pageBreakBefore Sets the value of the page-break-before attribute for the element. The attribute determines whether a page break occurs before the element, and on what page the subsequent content should resume.
put_styleFloat Sets the value of the float attribute for the element.
put_textAlign Sets the value of the text-align attribute for the element. The attribute determines the alignment of the element's text.
put_textDecoration Sets the value of the text-decoration attribute for the element.
put_textDecorationBlink Sets the value of the element's text-decoration attribute to blink, or removes the blink value from the attribute.
put_textDecorationLineThrough Sets the value of the element's text-decoration attribute to line-through, or removes the line-through value from the attribute.
put_textDecorationNone Sets the value of the element's text-decoration attribute to none, or removes the none value from the attribute.
put_textDecorationOverline Sets the value of the element's text-decoration attribute to overline, or removes the overline value from the attribute.
put_textDecorationUnderline Sets the value of the element's text-decoration attribute to underline, or removes the underline value from the attribute.
put_textIndent Sets the value of the text-indent attribute for the element. The attribute determines the amount of indention before the element's first line of formatted text.
put_textTransform Sets the value of the text-transform attribute for the element.
put_top Sets the value of the top attribute for the element. The attribute determines the top position of the element.
put_verticalAlign Sets the value of the vertical-align attribute for the element. The attribute determines the vertical positioning of the element.
put_visibility Sets the value of the visibility attribute for the element. The attribute determines whether the content of the element is visible.
put_whiteSpace Sets the WHITESPACE attribute for the element. The attribute determines whether and how white-space characters in the element are displayed.
put_width Sets the value of the width attribute for the element. The attribute determines the element's width.
put_wordSpacing Sets the value of the word-spacing attribute for the element. The attribute determines the amount of space to add to the default between words in the element's text.
put_zIndex Sets the value of the z-index attribute for the element. The attribute determines whether the element is positioned above or below the text.
removeAttribute Removes the given attribute from the element.
setAttribute Sets the value of the given attribute. If the attribute is not already present, the method adds the attribute to the element and sets the value.

Interface Information

Implementation System (Mshtml.dll)
Inherits from IDispatch
Header and IDL files Mshtml.h, Mshtml.idl
Minimum availability Internet Explorer 4.0
Minimum operating systems Windows 95, Windows NT 4.0

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.