IHTMLStyle interface

TBD.

Members

The IHTMLStyle interface inherits from the IUnknown interface. IHTMLStyle also has these types of members:

Methods

The IHTMLStyle interface has these methods.

MethodDescription
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 IHTMLStyle interface has these properties.

PropertyDescription

background

Sets or retrieves up to five separate background properties of the object.

backgroundAttachment

Sets or retrieves how the background image is attached to the object within the document.

backgroundColor

Sets or retrieves the color behind the content of the object.

backgroundImage

Sets or retrieves the background image of the object.

backgroundPosition

Sets or retrieves the position of the background of the object.

backgroundPositionX

Sets or retrieves the x-coordinate of the background-position property.

backgroundPositionY

Sets or retrieves the y-coordinate of the background-position property.

backgroundRepeat

Sets or retrieves how the background-image property of the object is tiled.

border

Sets or retrieves the properties to draw around the object.

borderBottom

Sets or retrieves the properties of the bottom border of the object.

borderBottomColor

Sets or retrieves the color of the bottom border of the object.

borderBottomStyle

Sets or retrieves the style of the bottom border of the object.

borderBottomWidth

Sets or retrieves the width of the bottom border of the object.

borderColor

Sets or retrieves the border color of the object.

borderLeft

Sets or retrieves the properties of the left border of the object.

borderLeftColor

Sets or retrieves the color of the left border of the object.

borderLeftStyle

Sets or retrieves the style of the left border of the object.

borderLeftWidth

Sets or retrieves the width of the left border of the object.

borderRight

Sets or retrieves the properties of the right border of the object.

borderRightColor

Sets or retrieves the color of the right border of the object.

borderRightStyle

Sets or retrieves the style of the right border of the object.

borderRightWidth

Sets or retrieves the width of the right border of the object.

borderStyle

Sets or retrieves the style of the left, right, top, and bottom borders of the object.

borderTop

Sets or retrieves the properties of the top border of the object.

borderTopColor

Sets or retrieves the color of the top border of the object.

borderTopStyle

Sets or retrieves the style of the top border of the object.

borderTopWidth

Sets or retrieves the width of the top border of the object.

borderWidth

Sets or retrieves the width of the left, right, top, and bottom borders of the object.

clear

Sets or 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.

clip

Sets or retrieves which part of a positioned object is visible.

color

Sets or retrieves the color of the text of the object.

cursor

Sets or retrieves the type of cursor to display as the mouse pointer moves over the object.

This property is not supported for Metro style apps using JavaScript.

display

Gets or sets a value that indicates whether and how the object is rendered.

filter

Sets or retrieves the filter or collection of filters that are applied to the object.

font

Sets or retrieves a combination of separate font properties of the object. Alternatively, sets or retrieves one or more of six user-preference fonts.

fontFamily

Sets or retrieves the name of the font used for text in the object.

fontSize

Sets or retrieves a value that indicates the font size used for text in the object.

fontStyle

Sets or retrieves the font style of the object as italic, normal, or oblique.

fontVariant

Sets or retrieves whether the text of the object is in small capital letters.

fontWeight

Sets or retrieves the weight of the font of the object.

height

Sets or retrieves the height of the object.

left

Sets or retrieves the position of the object relative to the left edge of the next positioned object in the document hierarchy.

letterSpacing

Sets or retrieves the amount of additional space between letters in the object.

lineHeight

Sets or retrieves the distance between lines in the object.

listStyle

Sets or retrieves up to three separate list-style properties of the object.

listStyleImage

Sets or retrieves a value that indicates which image to use as a list-item marker for the object.

listStylePosition

Sets or retrieves a variable that indicates how the list-item marker is drawn relative to the content of the object.

listStyleType

Sets or retrieves the predefined type of the line-item marker for the object.

margin

Sets or retrieves the width of the top, right, bottom, and left margins of the object.

marginBottom

Sets or retrieves the height of the bottom margin of the object.

marginLeft

Sets or retrieves the width of the left margin of the object.

marginRight

Sets or retrieves the width of the right margin of the object.

marginTop

Sets or retrieves the height of the top margin of the object.

overflow

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.

padding

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.

paddingBottom

Sets or retrieves the amount of space to insert between the bottom border of the object and the content.

paddingLeft

Sets or retrieves the amount of space to insert between the left border of the object and the content.

paddingRight

Sets or retrieves the amount of space to insert between the right border of the object and the content.

paddingTop

Sets or retrieves the amount of space to insert between the top border of the object and the content.

pageBreakAfter

Sets or retrieves a value indicating whether a page break occurs after the object.

pageBreakBefore

Sets or retrieves a string indicating whether a page break occurs before the object.

pixelHeight

Sets or retrieves the height of the object.

pixelLeft

Sets or retrieves the left position of the object.

pixelTop

Sets or retrieves the top position of the object.

pixelWidth

Sets or retrieves the width of the object.

posHeight

Sets or retrieves the height of the object in the units specified by the height attribute.

position

Sets or retrieves the type of positioning used for the object.

posLeft

Sets or retrieves the left position of the object in the units specified by the left attribute.

posTop

Sets or retrieves the top position of the object in the units specified by the top attribute.

posWidth

Sets or retrieves the width of the object in the units specified by the width attribute.

styleFloat

Sets or retrieves on which side of the object the text will flow.

textAlign

Sets or retrieves whether the text in the object is left-aligned, right-aligned, centered, or justified.

textDecoration

Sets or retrieves a value that indicates whether the text in the object has blink, line-through, overline, or underline decorations.

textDecorationBlink

Sets or retrieves a Boolean value that indicates whether the object's textDecoration property has a value of "blink."

This property is not supported for Metro style apps using JavaScript.

textDecorationLineThrough

Sets or retrieves a Boolean value indicating whether the text in the object has a line drawn through it.

textDecorationNone

Sets or retrieves the Boolean value indicating whether the textDecoration property for the object has been set to none.

textDecorationOverline

Sets or retrieves a Boolean value indicating whether the text in the object has a line drawn over it.

textDecorationUnderline

Sets or retrieves whether the text in the object is underlined.

textIndent

Sets or retrieves the indentation of the first line of text in the object.

This property is not supported for Metro style apps using JavaScript.

textTransform

Sets or retrieves the rendering of the text in the object.

top

Sets or retrieves the position of the object relative to the top of the next positioned object in the document hierarchy.

verticalAlign

Sets or retrieves the vertical alignment of the object.

visibility

Sets or retrieves whether the content of the object is displayed.

whiteSpace

Sets or retrieves a value that indicates whether lines are automatically broken inside the object.

width

Sets or retrieves the width of the object.

wordSpacing

Sets or retrieves the amount of additional space between words in the object.

zIndex

Sets or retrieves the stacking order of positioned objects.

 

 

 

Send comments about this topic to Microsoft

Build date: 1/23/2012

Community Additions

Show: