IHTMLStyle::put_borderLeft
IHTMLStyle

IHTMLStyle::put_borderLeft


HRESULT put_borderLeft(
    BSTR v 
);

Sets the value of the CSS border-left attribute for the element. The attribute determines the width, style, and color of the left border.

v
String specifying the border width, style, and color. See border-left for details. Set this parameter to NULL to remove the attribute.

See also get_borderLeft

IHTMLStyle::put_borderLeftColor

HRESULT put_borderLeftColor(
    VARIANT v 
);

Sets the value of the CSS border-left-color attribute for the element. The attribute determines the color of the element's left border.

v
String specifying the border color, which can be one of the color names or values given in the Color Table reference documentation. See border-left-color for details. Set this parameter to NULL to remove the attribute.

See also get_borderLeftColor

IHTMLStyle::put_borderLeftStyle

HRESULT put_borderLeftStyle( 
    BSTR v 
);

Sets the value of the CSS border-left-style attribute for the element. The attribute determines the style of the left border.

v
String specifying the border style. See border-left-style for details. Set this parameter to NULL to remove the attribute.

See also get_borderLeftStyle

IHTMLStyle::put_borderLeftWidth

HRESULT put_borderLeftWidth(
    VARIANT v 
);

Sets the value of the CSS border-left-width attribute for the element. The attribute determines the width of the left border.

v
String specifying the border width. See border-left-width for details. Set this parameter to NULL to remove the attribute.

See also get_borderLeftWidth

IHTMLStyle::put_borderRight

HRESULT put_borderRight(
    BSTR v 
);

Sets the value of the CSS border-right attribute for the element. The attribute determines the width, style, and color of the right border.

v
String specifying the border width, style, and color. See border-right for details. Set this parameter to NULL to remove the attribute.

See also get_borderRight

IHTMLStyle::put_borderRightColor

HRESULT put_borderRightColor(
    VARIANT v 
);

Sets the value of the CSS border-right-color attribute for the element. The attribute determines the color of the element's right border.

v
String specifying the border color, which can be one of the color names or values given in the Color Table reference documentation. See border-right-color for details. Set this parameter to NULL to remove the attribute.

See also get_borderRightColor

IHTMLStyle::put_borderRightStyle

HRESULT put_borderRightStyle( 
    BSTR v 
);

Sets the value of the CSS border-right-style attribute for the element. The attribute determines the style of the right border.

v
String specifying the border style. See border-right-style for details. Set this parameter to NULL to remove the attribute.

See also get_borderRightStyle

IHTMLStyle::put_borderRightWidth

HRESULT put_borderRightWidth(
    VARIANT v 
);

Sets the value of the CSS border-right-width attribute for the element. The attribute determines the width of the right border.

v
String specifying the border width. See border-right-width for details. Set this parameter to NULL to remove the attribute.

See also get_borderRightWidth

IHTMLStyle::put_borderStyle

HRESULT put_borderStyle(
    BSTR v 
);

Sets the value of the CSS border-style attribute for the element. The attribute determines the style of the left, right, top, and bottom borders.

v
String specifying the border styles. See border-width for details. Set this parameter to NULL to remove the attribute.

See also get_borderStyle

IHTMLStyle::put_borderTop

HRESULT put_borderTop( 
    BSTR v 
);

Sets the value of the CSS border-top attribute for the element. The attribute determines the width, style, and color of the top border.

v
String specifying the border width, style, and color. See border-top for details. Set this parameter to NULL to remove the attribute.

See also get_borderTop

IHTMLStyle::put_borderTopColor

HRESULT put_borderTopColor(
    VARIANT v 
);

Sets the value of the CSS border-top-color attribute for the element. The attribute determines the color of the element's top border.

v
String specifying the border color, which can be one of the color names or values given in the Color Table reference documentation. See border-top-color for details. Set this parameter to NULL to remove the attribute.

See also get_borderTopColor

IHTMLStyle::put_borderTopStyle

HRESULT put_borderTopStyle(
    BSTR v 
);

Sets the value of the CSS border-top-style attribute for the element. The attribute determines the style of the top border.

v
String specifying the border style. See border-top-style for details. Set this parameter to NULL to remove the attribute.

See also get_borderTopStyle

IHTMLStyle::put_borderTopWidth

HRESULT put_borderTopWidth(
    VARIANT v 
);

Sets the value of the CSS border-top-width attribute for the element. The attribute determines the width of the top border.

v
String specifying the border width. See border-top-width for details. Set this parameter to NULL to remove the attribute.

See also get_borderTopWidth

IHTMLStyle::put_borderWidth

HRESULT put_borderWidth(
    BSTR v 
);

Sets the value of the CSS border-width attribute for the element. The attribute determines the width of the left, right, top, and bottom borders.

v
String specifying the border widths. See border-width for details. Set this parameter to NULL to remove the attribute.

See also get_borderWidth

IHTMLStyle::put_clear

HRESULT put_clear( 
    BSTR v 
);

Sets the value of the CSS clear attribute for the element. The attribute determines whether the element allows floating elements (typically images) on its left and right sides. More specifically, the attribute specifies the sides where floating elements are not allowed.

v
String specifying the sides where floating elements cannot appear. Can be one of these strings:
left
right
both
See clear for details. Set this parameter to NULL to remove the attribute.

See also get_clear

IHTMLStyle::put_clip

HRESULT put_clip( 
    BSTR v 
);

Sets the value of the CSS 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.

v
String specifying the coordinates of the clipping area. Each coordinate can be a length value or "auto". See clip for details. Set this parameter to NULL to remove the attribute.

See also get_clip

IHTMLStyle::put_color

HRESULT put_color(
    VARIANT v 
);

Sets the CSS color attribute for the element.

v
String or value specifying the color, or NULL to remove the attribute. See color for details. The color can be one of the color names or values given in the Color Table reference documentation.

See also get_color

IHTMLStyle::put_cssText

HRESULT put_cssText(
    BSTR v 
);

Sets the persisted representation of the style rule.

v
String specifying the style rule.

See also get_cssText

IHTMLStyle::put_cursor

HRESULT put_cursor(
    BSTR v 
);

Sets the value of the CSS cursor attribute for the element. The attribute determines the type of cursor to display when the mouse is over the element.

v
String specifying the cursor type. Can be one of these values:
auto The UA determines the cursor to display based on the current context.
crosshair A simple crosshair.
default The platform-dependent default cursor (typically an arrow).
hand A hand.
move A four-directional arrow typically used to indicate an object to be moved.
*-resize An arrow cursor typically used to indicate the edge of an object to be moved during a resize operation.
text Typically an I-bar used to indicate editable text.
wait Typically a watch or hourglass used to indicate that the program is busy and the user should wait.

See also get_cursor

IHTMLStyle::put_display

HRESULT put_display(
    BSTR v 
);

Sets the value of the CSS display attribute for the element. The attribute determines whether the element is rendered.

v
String specifying whether to render the element. If this parameter is "none", the element is not rendered; if NULL, it is rendered. See display for details.

Although you can apply the display attribute to parts of a table (such as a TR or TD element), changing the property has no effect on those parts. However, you can dynamically control the rendering of the entire table by applying the attribute to the TABLE element.

See also get_display

IHTMLStyle::put_filter

HRESULT put_filter( 
    BSTR v 
);

Sets a filter or collection of filters for the element.

v
String specifying the filter.

See also get_filter

IHTMLStyle::put_font

HRESULT put_font(
    BSTR v 
);

Sets the value of the CSS font-style, font-variant, font-weight, font-size, line-height, and font-family attributes for the element.

v
String specifying values for one or more font attributes. This parameter has the following format:
[<font-style> || <font-variant> || <font-weight>] <font-size> /
[<line-height>] <font-family>
See font for details.

See also get_font

IHTMLStyle::put_fontFamily

HRESULT put_fontFamily( 
    BSTR v 
);

Sets the value of the CSS font-family attribute for the element.

v
String specifying the font family, or NULL to remove the attribute. See font-family for details.

See also get_fontFamily

IHTMLStyle::put_fontSize

HRESULT put_fontSize(
    VARIANT v 
);

Sets the value of the CSS font-size attribute for the element.

v
String specifying the font size, or NULL to remove the attribute. See font-size for details.

See also get_fontSize

IHTMLStyle::put_fontStyle

HRESULT put_fontStyle(
    BSTR v 
);

Sets the value of the CSS font-style attribute for the element.

v
String specifying the font style, or NULL to remove the attribute. The font style can be one of these strings:
normal
italic
oblique
See font-style for details.

See also get_fontStyle

IHTMLStyle::put_fontVariant

HRESULT put_fontVariant(
    BSTR v 
);

Sets the value of the CSS font-variant attribute for the element.

v
String specifying the font variation, or NULL to remove the attribute. The font variation can be one of these strings:
normal
small-caps
See font-variant for details.

The default value for the font-variant attribute is "normal".

See also get_fontVariant

IHTMLStyle::put_fontWeight

HRESULT put_fontWeight(
    BSTR v 
);

Sets the value of the CSS font-weight attribute for the element.

v
String specifying the font weight, or NULL to remove the attribute. The font weight can be one of these strings:
normal
bold
bolder
lighter
100
200
300
400
500
600
700
800
900
See font-weight for details.

See also get_fontWeight

IHTMLStyle::put_height

HRESULT put_height(
    VARIANT v 
);

Sets the value of the CSS height attribute for the element. The attribute determines the element's height.

v
String specifying the height, which consists of a floating-point number and a units designator. See height for details. Set this parameter to NULL to remove the attribute.

See also get_height

IHTMLStyle::put_left

HRESULT put_left(
    VARIANT v 
);

Sets the value of the CSS left attribute for the element. The attribute determines the left position of the element.

v
String or value consisting of a floating-point number and a units designator. See left for details. Set this parameter to NULL to remove the attribute.

See also get_left

IHTMLStyle::put_letterSpacing

HRESULT put_letterSpacing(
    VARIANT v 
);

Sets the value of the CSS 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.

v
String or value specifying the amount of space to add. A negative value is valid. See letter-spacing for details. Set this parameter to NULL to remove the attribute.

See also get_letterSpacing

IHTMLStyle::put_lineHeight

HRESULT put_lineHeight(
    VARIANT v 
);

Sets the value of the CSS line-height attribute for the element. The attribute determines the distance between the baselines of subsequent lines of text. Use a negative line height to achieve various shadowing effects.

v
String or value specifying the line height. The height can be positive or negative. Set this parameter to NULL to remove the attribute.

See also get_lineHeight

IHTMLStyle::put_listStyle

HRESULT put_listStyle( 
    BSTR v 
);

Sets the value of the CSS list-style attribute for the element. The attribute determines how a list-item marker is drawn.

v
String specifying the values of the attribute. See list-style for details. Set this parameter to NULL to remove the attribute.

The list-style attribute is applicable only on elements that have the display attribute set to "list-item". This property can be set on any element and is inherited down the tree. In HTML, this is typically the case for the LI element.

This function combines the functionality of the put_listStyleType, put_listStyleImage, and put_listStylePosition functions.

If no type or position is specified, the default type is "disk" and the default position is "outside".

See also get_listStyle

IHTMLStyle::put_listStyleImage

HRESULT put_listStyleImage(
    BSTR v 
);

Sets the value of the CSS 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.

v
String specifying the value of the attribute. Can be either "none" or the URL of an image. See list-style-image for details. Set this parameter to NULL to remove the attribute.

The list-style-image attribute is applicable only on elements that have the display attribute set to "list-item".

See also get_listStyleImage

IHTMLStyle::put_listStylePosition

HRESULT put_listStylePosition( 
    BSTR v 
);

Sets the value of the CSS list-style-position attribute for the element. The attribute determines how the list-item marker is drawn with regard to the content.

v
String specifying the value of the attribute. Can be one of these strings:
inside
outside
See list-style-position for details. Set this parameter to NULL to remove the attribute.

The list-style-position attribute is applicable only on elements that have the display attribute set to "list-item".

See also get_listStylePosition

IHTMLStyle::put_listStyleType

HRESULT put_listStyleType(
    BSTR v 
);

Sets the value of the CSS list-style-type attribute for the element. The attribute determines the appearance of the list-item marker if the list-style-image is set to "none" or if the image pointed to by the URL cannot be displayed.

v
String specifying the value of the attribute. Can be one of these strings:
disk
circle
square
decimal
lower-roman
upper-roman
lower-alpha
upper-alpha
none
See list-style-type for details. Set this parameter to NULL to remove the attribute.

The list-style-type attribute is applicable only on elements that have the display attribute set to "list-item".

See also get_listStyleType

IHTMLStyle::put_margin

HRESULT put_margin( 
    BSTR v 
);

Sets the value of the CSS margin attribute for the element. The attribute sets the top, right, bottom, and left margins for the text of the element.

v
String that specifies the top, right, bottom, and left margins, in that order. See margin for details. Set this parameter to NULL to remove the attribute.

This function combines the functionality of the put_marginTop, put_marginRight, put_marginBottom, and put_marginLeft functions.

See also get_margin

IHTMLStyle::put_marginBottom

HRESULT put_marginBottom(
    VARIANT v 
);

Sets the value of the CSS margin-bottom attribute for the element. The attribute determines the height of the bottom margin for the element.

v
String or value specifying the height of the bottom margin. The height can be positive or negative. See margin-bottom for details. Set this parameter to NULL to remove the attribute.

See also get_marginBottom

IHTMLStyle::put_marginLeft

HRESULT put_marginLeft( 
    VARIANT v 
);

Sets the value of the CSS margin-left attribute for the element. The attribute determines the width of the left margin for the element.

v
String or value specifying the width of the left margin. The width can be positive or negative. See margin-left for details. Set this parameter to NULL to remove the attribute.

See also get_marginLeft

IHTMLStyle::put_marginRight

HRESULT put_marginRight(
    VARIANT v 
);

Sets the value of the CSS margin-right attribute for the element. The attribute determines the width of the right margin for the element.

v
String or value specifying the width of the right margin. The width can be positive or negative. See margin-right for details. Set this parameter to NULL to remove the attribute.

See also get_marginRight

IHTMLStyle::put_marginTop

HRESULT put_marginTop(
    VARIANT v 
);

Sets the value of the CSS margin-top attribute for the element. The attribute determines the height of the top margin for the element.

v
String or value specifying the top margin. The height can be positive or negative. See margin-top for details. Set this parameter to NULL to remove the attribute.

See also get_marginTop

IHTMLStyle::put_overflow

HRESULT put_overflow(
    BSTR v 
);

Sets the value of the CSS overflow attribute for the element.

v
String specifying the value of the attribute. Can be one of these strings:
none
clip
scroll
See overflow for details. Set this parameter to NULL to remove the attribute.

See also get_overflow

IHTMLStyle::put_padding

HRESULT put_padding(
    BSTR v 
);

Sets the value of the CSS padding attribute for the element. The attibute determines the amount of space between the border and the element's content.

v
String that specifies the amount of top, right, bottom, and left padding, in that order. See padding for details. Set this parameter to NULL to remove the attribute.

This function combines the functionality of the put_paddingTop, put_paddingRight, put_paddingBottom, and put_paddingLeft functions.

See also get_padding

IHTMLStyle::put_paddingBottom

HRESULT put_paddingBottom( 
    VARIANT v 
);

Sets the value of the CSS padding-bottom attribute for the element. The attribute determines the amount of space between the border and the bottom of the element's content.

v
String or value specifying the amount of bottom padding. See padding-bottom for details. Set this parameter to NULL to remove the attribute.

See also get_paddingBottom

© 1997 Microsoft Corporation. All rights reserved. Terms of Use.