IHTMLCurrentStyle Interface
Provides the ability to programmatically access the style properties of the element.
IHTMLCurrentStyle Members
accelerator Retrieves a string that indicates whether the object represents a keyboard shortcut. backgroundAttachment Retrieves how the background image is attached to the object within the document. backgroundColor Retrieves the color behind the content of the object. backgroundImage Retrieves the background image of the object. backgroundPositionX Retrieves the x-coordinate of the IHTMLStyle::backgroundPosition property. backgroundPositionY Retrieves the y-coordinate of the IHTMLStyle::backgroundPosition property. backgroundRepeat Retrieves how the backgroundImage property of the object is tiled. behavior Retrieves the location of the Dynamic HTML (DHTML) behavior. blockDirection Gets a string value that indicates whether the content in the block element flows from left to right, or from right to left. borderBottomColor Retrieves the color of the bottom border of the object. borderBottomStyle Retrieves the style of the bottom border of the object. borderBottomWidth Retrieves the width of the bottom border of the object. borderCollapse Retrieves a value that indicates whether the row and cell borders of a table are joined in a single border or detached as in standard HTML. borderColor Retrieves the border color of the object. borderLeftColor Retrieves the color of the left border of the object. borderLeftStyle Retrieves the style of the left border of the object. borderLeftWidth Retrieves the width of the left border of the object. borderRightColor Retrieves the color of the right border of the object. borderRightStyle Retrieves the style of the right border of the object. borderRightWidth Retrieves the width of the right border of the object. borderStyle Retrieves the style of the left, right, top, and bottom borders of the object. borderTopColor Retrieves the color of the top border of the object. borderTopStyle Retrieves the style of the top border of the object. borderTopWidth Retrieves the width of the top border of the object. borderWidth Retrieves the width of the left, right, top, and bottom borders of the object. bottom Retrieves the bottom position of the object in relation to the bottom of the next positioned object in the document hierarchy. clear Retrieves whether the object allows floating objects on its left side, right side, or both, so that the next text displays past the floating objects. clipBottom Gets the bottom coordinate of the object clipping region. clipLeft Gets the left coordinate of the object clipping region. clipRight Gets the right coordinate of the object clipping region. clipTop Gets the top coordinate of the object clipping region. color Retrieves the color of the text of the object. cursor Retrieves the type of cursor to display as the mouse pointer moves over the object. direction Retrieves the reading order of the object. display Retrieves whether the object is rendered. fontFamily Retrieves the name of the font used for text in the object. fontSize Retrieves a value that indicates the font size used for text in the object. fontStyle Retrieves the font style of the object as italic
,normal
, oroblique
.fontVariant Retrieves whether the text of the object is in small capital letters. fontWeight Gets the numeric weight of the font of the object. getAttribute Retrieves the value of the specified attribute. height Retrieves the height of the object. imeMode Retrieves the state of an Input Method Editor (IME). layoutGridChar Retrieves the size of the character grid used for rendering the text content of an element. layoutGridLine Retrieves the gridline value used for rendering the text content of an element. layoutGridMode Retrieves whether the text layout grid uses two dimensions. layoutGridType Retrieves the type of grid used for rendering the text content of an element. left Retrieves the position of the object relative to the left edge of the next positioned object in the document hierarchy. letterSpacing Retrieves the amount of additional space between letters in the object. lineBreak Retrieves line-breaking rules for text in selected languages such as Japanese, Chinese, and Korean. lineHeight Retrieves the distance between lines in the object. listStyleImage Retrieves a value that indicates which image to use as a list-item marker for the object. listStylePosition Retrieves a variable that indicates how the list-item marker is drawn relative to the content of the object. listStyleType Retrieves the predefined type of the line-item marker for the object. margin Retrieves the width of the top, right, bottom, and left margins of the object. marginBottom Retrieves the height of the bottom margin of the object. marginLeft Retrieves the width of the left margin of the object. marginRight Retrieves the width of the right margin of the object. marginTop Retrieves the height of the top margin of the object. overflow Retrieves a value indicating how to manage the content of the object when the content exceeds the height or width of the object. overflowX Retrieves how to manage the content of the object when the content exceeds the width of the object. overflowY Retrieves how to manage the content of the object when the content exceeds the height of the object. padding 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. paddingBottom Retrieves the amount of space to insert between the bottom border of the object and the content. paddingLeft Retrieves the amount of space to insert between the left border of the object and the content. paddingRight Retrieves the amount of space to insert between the right border of the object and the content. paddingTop Retrieves the amount of space to insert between the top border of the object and the content. pageBreakAfter Retrieves a value indicating whether a page break occurs after the object. pageBreakBefore Retrieves a string indicating whether a page break occurs before the object. position Retrieves the type of positioning used for the object. right Retrieves the position of the object relative to the right edge of the next positioned object in the document hierarchy. rubyAlign Retrieves the position of the ruby text specified by the rt object. rubyOverhang Retrieves the position of the ruby text specified by the rt object. rubyPosition Retrieves the position of the ruby text specified by the rt object. styleFloat Retrieves on which side of the object the text will flow. tableLayout Retrieves a string that indicates whether the table layout is fixed. textAlign Retrieves whether the text in the object is left-aligned, right-aligned, centered, or justified. textAutospace Retrieves the autospacing and narrow space width adjustment of text. textDecoration Retrieves a value that indicates whether the text in the object has blink, line-through, overline, or underline decorations. textIndent Retrieves the indentation of the first line of text in the object. textJustify Retrieves the type of alignment used to justify text in the object. textJustifyTrim Not implemented. textKashida Not implemented. textTransform Retrieves the rendering of the text in the object. top Retrieves the position of the object relative to the top of the next positioned object in the document hierarchy. unicodeBidi Retrieves the level of embedding with respect to the bidirectional algorithm. verticalAlign Retrieves the vertical alignment of the object. visibility Sets or retrieves whether the content of the object is displayed. width Retrieves the width of the object. wordBreak Retrieves line-breaking behavior within words, particularly where multiple languages appear in the object. zIndex Retrieves the stacking order of positioned objects.
Interface Information
Stock Implementation mshtml.dll Custom Implementation No Inherits from IDispatch Header and IDL files Mshtml.h, Mshtml.idl Minimum availability Internet Explorer 5 Minimum operating systems Windows 95, Windows NT 4.0, Windows CE 4.0
See Also
IHTMLCurrentStyle2 Interface
Enables you to programmatically access the style properties of an element.
IHTMLCurrentStyle2 Members
filter Retrieves the filter or collection of filters applied to the object. hasLayout Gets a value that indicates whether the object has layout. isBlock Gets a value that indicates whether the object is a block-level object. layoutFlow Retrieves the direction and flow of the content in the object. scrollbar3dLightColor Retrieves the color of the top and left edges of the scroll box and scroll arrows of a scroll bar. scrollbarArrowColor Retrieves the color of the arrow elements of a scroll arrow. scrollbarBaseColor Retrieves the color of the main elements of a scroll bar, which include the scroll box, track, and scroll arrows. scrollbarDarkShadowColor Retrieves the color of the gutter of a scroll bar. scrollbarFaceColor Retrieves the color of the scroll box and scroll arrows of a scroll bar. scrollbarHighlightColor Retrieves the color of the top and left edges of the scroll box and scroll arrows of a scroll bar. scrollbarShadowColor Retrieves the color of the bottom and right edges of the scroll box and scroll arrows of a scroll bar. scrollbarTrackColor Retrieves the color of the track element of a scroll bar. textAlignLast Retrieves how to align the last line or only line of text in the object. textKashidaSpace Retrieves the ratio of kashida expansion to white space expansion when justifying lines of text in the object. textUnderlinePosition Retrieves the position of the underline decoration that is set through the IHTMLStyle::textDecoration property of the object. wordWrap Retrieves whether to break words when the content exceeds the boundaries of its container. writingMode Retrieves the direction and flow of the content in the object. zoom Retrieves the magnification scale of the object.
Interface Information
Stock Implementation mshtml.dll Custom Implementation No Inherits from IDispatch Header and IDL files mshtml.h, mshtml.idl Minimum availability Internet Explorer 5.5 Minimum operating systems Windows 95, Windows NT 4.0, Windows CE 4.0
See Also
IHTMLCurrentStyle3 Interface
Extends the IHTMLCurrentStyle2 interface.
IHTMLCurrentStyle3 Members
minHeight Retrieves the minimum height for an element. textOverflow Sets or retrieves a value that indicates whether to render ellipses(...) to indicate text overflow. whiteSpace Retrieves a value that indicates whether lines are automatically broken inside the object. wordSpacing Retrieves the amount of additional space between words in the object.
Interface Information
Stock Implementation mshtml.dll Custom Implementation No Inherits from IDispatch Header and IDL files mshtml.h, mshtml.idl Minimum availability Internet Explorer 6 Minimum operating systems Windows 98, Windows NT 4.0, Windows CE 4.0
See Also
IHTMLCurrentStyle4 Interface
Extends the IHTMLCurrentStyle3 interface.
IHTMLCurrentStyle4 Members
maxHeight Retrieves the maximum height for an element. maxWidth Retrieves the maximum width for an element. minWidth Retrieves the minimum width for an element. msInterpolationMode Retrieves the interpolation (resampling) method used to stretch images.
Interface Information
Stock Implementation mshtml.dll Custom Implementation No Inherits from IDispatch Header and IDL files mshtml.h, mshtml.idl Minimum availability Internet Explorer 7 Minimum operating systems Windows XP SP2
See Also
IHTMLCurrentStyle5 Interface
Extends the IHTMLCurrentStyle4 interface with Cascading Style Sheets, Level 2.1 (CSS2.1)
properties for Internet Explorer 8.
IHTMLCurrentStyle5 Members
borderSpacing Sets or retrieves the distance between the borders of adjoining cells in a table. boxSizing Retrieves the box model to use for object sizing. captionSide Retrieves where the caption of a table is located. content Retrieves generated content to insert before or after an element. counterIncrement Retrieves a list of counters to increment. counterReset Retrieves a list of counters to create or reset to zero. emptyCells Determines whether to show or hide a cell without content. msBlockProgression Retrieves the block progression and layout orientation. orphans Retrieves the minimum number of lines of a paragraph that must appear at the bottom of a page. outline Retrieves the color, style, and width of the outline frame. outlineColor Retrieves the color of the outline frame. outlineStyle Retrieves the style of the outline frame. outlineWidth Retrieves the width of the outline frame. pageBreakInside Retrieves a string indicating whether a page break is allowed to occur inside the object. quotes Retrieves the pairs of strings to be used as quotes in generated content. widows Retrieves the minimum number of lines of a paragraph that must appear at the top of a page.
Remarks
For a full list of Cascading Style Sheets (CSS) modules, see IHTMLStyle6.
Interface Information
Stock Implementation mshtml.dll Custom Implementation No Inherits from IDispatch Header and IDL files mshtml.h, mshtml.idl Minimum availability Internet Explorer 8 Minimum operating systems Windows XP SP2