IHTMLRuleStyle::put_borderStyle
IHTMLRuleStyle

IHTMLRuleStyle::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. Set this parameter to NULL to remove the attribute. See border-width for details.

See also get_borderStyle

IHTMLRuleStyle::get_borderStyle

HRESULT get_borderStyle(
    BSTR *p 
);

Retrieves the value of the CSS border-style attribute for the element.

p
Address of a variable that receives the border styles. See border-style for details. This parameter receives NULL if the attribute is not set.

See also put_borderStyle

IHTMLRuleStyle::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. Set this parameter to NULL to remove the attribute. See border-top-style for details.

See also get_borderTopStyle

IHTMLRuleStyle::get_borderTopStyle

HRESULT get_borderTopStyle( 
    BSTR *p 
);

Retrieves the value of the CSS border-top-style attribute for the element.

p
Address of a variable that receives the border style. See border-top-style for details. This parameter receives NULL if the attribute is not set.

See also put_borderTopStyle

IHTMLRuleStyle::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. Set this parameter to NULL to remove the attribute. See border-right-style for details.

See also get_borderRightStyle

IHTMLRuleStyle::get_borderRightStyle

HRESULT get_borderRightStyle(
    BSTR *p 
);

Retrieves the value of the CSS border-right-style attribute for the element.

p
Address of a variable that receives the border style. See border-right-style for details. This parameter receives NULL if the attribute is not set.

See also put_borderRightStyle

IHTMLRuleStyle::put_borderBottomStyle

HRESULT put_borderBottomStyle(
    BSTR v 
);

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

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

See also get_borderBottomStyle

IHTMLRuleStyle::get_borderBottomStyle

HRESULT get_borderBottomStyle( 
    BSTR *p 
);

Retrieves the value of the CSS border-bottom-style attribute for the element.

p
Address of a variable that receives the border style. See border-bottom-style for details. This parameter receives NULL if the attribute is not set.

See also put_borderBottomStyle

IHTMLRuleStyle::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. Set this parameter to NULL to remove the attribute. See border-left-style for details.

See also get_borderLeftStyle

IHTMLRuleStyle::get_borderLeftStyle

HRESULT get_borderLeftStyle( 
    BSTR *p 
);

Retrieves the value of the CSS border-left-style attribute for the element.

p
Address of a variable that receives the border style. See border-left-style for details. This parameter receives NULL if the attribute is not set.

See also put_borderLeftStyle

IHTMLRuleStyle::put_width

HRESULT put_width( 
    VARIANT v 
);

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

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

See also get_width

IHTMLRuleStyle::get_width

HRESULT get_width(
    VARIANT *p 
);

Retrieves the value of the CSS width attribute for the element.

p
Address of a variable that receives the width. See width for details. This parameter receives NULL if the attribute is not set.

See also put_height

IHTMLRuleStyle::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

IHTMLRuleStyle::get_height

HRESULT get_height(
    VARIANT *p 
);

Retrieves the value of the CSS height attribute for the element.

p
Address of a variable that receives the height. See height for details. This parameter receives NULL if the attribute is not set.

See also put_height

IHTMLRuleStyle::put_styleFloat

HRESULT put_styleFloat(
    BSTR v 
);

Sets the value of the CSS float attribute for the element. The attribute determines whether the element floats, causing text to flow around it.

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

See also get_styleFloat

IHTMLRuleStyle::get_styleFloat

HRESULT get_styleFloat(
    BSTR *p 
);

Retrieves the value of the CSS float attribute for the element.

p
Address of a variable that receives the value of the attribute, which can be one of these strings:
left
right
none
See height for details. This parameter receives NULL if the attribute is not set.

See also put_styleFloat

IHTMLRuleStyle::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 may not appear. Can be one of these strings:
left
right
both
Set this parameter to NULL to remove the attribute. See clear for details.

See also get_clear

IHTMLRuleStyle::get_clear

HRESULT get_clear(
    BSTR *p 
);

Retrieves the value of the CSS clear attribute for the element.

p
Address of a variable that receives the value of the attribute, which can be one of these strings:
left
right
both
See clear for details. This parameter receives NULL if the attribute is not set.

See also put_clear

IHTMLRuleStyle::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

IHTMLRuleStyle::get_display

HRESULT get_display(
    BSTR *p 
);

Retrieves the value of the display attribute for the element.

p
Address of a variable that receives the value of the attribute. The variable receives "none" if the element is not being rendered, or NULL if it is. See display for details.

See also put_display

IHTMLRuleStyle::put_visibility

HRESULT put_visibility(
    BSTR v 
);

Sets the value of the CSS visibility attribute for the element. The attribute determines whether the content of the element is visible.

v
String specifying whether the element is visible. Can be one of these strings:
visible
hidden
inherit
Set this parameter to NULL to remove the attribute. See visibility for details.

Space is reserved for the element's content regardless of the value of the visibility attribute.

See also get_visibility

IHTMLRuleStyle::get_visibility

HRESULT get_visibility(
    BSTR *p 
);

Retrieves the value of the visibility attribute for the element.

p
Address of a variable that receives the value of the attribute, which can be one of these strings:
visible
hidden
inherit
The variable receives NULL if the attribute is not set. See visibility for details.

See also put_visibility

IHTMLRuleStyle::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
Set this parameter to NULL to remove the attribute. See list-style-type for details.

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

See also get_listStyleType

IHTMLRuleStyle::get_listStyleType

HRESULT get_listStyleType(
    BSTR *p 
);

Retrieves the value of the CSS list-style-type attribute for the element.

p
Address of a variable that receives the value of the attribute, which can be one of these strings:
disk
circle
square
decimal
lower-roman
upper-roman
lower-alpha
upper-alpha
none
The variable receives NULL if the attribute is not set. See list-style-type for details.

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

See also put_listStyleType

IHTMLRuleStyle::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
Set this parameter to NULL to remove the attribute. See list-style-position for details.

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

See also get_listStylePosition

IHTMLRuleStyle::get_listStylePosition

HRESULT get_listStylePosition(
    BSTR *p
);

Retrieves the value of the CSS list-style-position attribute for the element.

p
Address of a variable that receives the value of the attribute, which can be one of these strings:
inside
outside
The variable receives NULL if the attribute is not set. See list-style-position for details.

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

See also put_listStylePosition

IHTMLRuleStyle::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. Set this parameter to NULL to remove the attribute. See list-style-image for details.

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

See also get_listStyleImage

IHTMLRuleStyle::get_listStyleImage

HRESULT get_listStyleImage(
    BSTR *p 
);

Retrieves the value of the CSS list-style-image attribute for the element.

p
Address of a variable that receives the value of the attribute, which can be either "none" or the URL of an image used as the list-item marker. The variable receives NULL if the attribute is not set. See list-style-image for details.

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

See also put_listStyleImage

IHTMLRuleStyle::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. Set this parameter to NULL to remove the attribute. See list-style for details.

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

IHTMLRuleStyle::get_listStyle

HRESULT get_listStyle(
    BSTR *p 
);

Retrieves the value of the CSS list-style attribute for the element.

p
Address of a variable that receives the value of the attribute. The variable receives NULL if the attribute is not set. See list-style for details.

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

This function combines the functionality of the get_listStyleType, get_listStyleImage, and get_listStylePosition functions.

See also put_listStyle

IHTMLRuleStyle::put_whiteSpace

HRESULT put_whiteSpace( 
    BSTR v 
);

Sets the CSS white-space attribute for the element. The attribute determines whether and how white-space characters in the element are displayed.

v
String specifying the value of the attribute. Can be one of these strings:
normal Consecutive white-space characters are replaced with a single space.
nowrap Linebreak characters are preserved, but consecutive spaces and tab characters are replaced with a single space.
pre All white-space characters (including line breaks) are preserved.
Set this parameter to NULL to remove the attribute.

See also get_whiteSpace

IHTMLRuleStyle::get_whiteSpace

HRESULT get_whiteSpace(
    BSTR *p 
);

Retrieves the value of the CSS white-space attribute for the element.

p
Address of a variable that receives the value of the attribute, which can be one of these strings:
normal Consecutive white-space characters are replaced with a single space.
nowrap Linebreak characters are preserved, but consecutive spaces and tab characters are replaced with a single space.
pre All white-space characters (including line breaks) are preserved.
The variable receives NULL if the attribute is not set.

See also put_whiteSpace

IHTMLRuleStyle::put_top

HRESULT put_top(
    VARIANT v 
);

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

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

See also get_top

IHTMLRuleStyle::get_top

HRESULT get_top(
    VARIANT *p 
);

Retrieves the value of the CSS top attribute for the element.

p
Address of a variable that receives the value of the attribute. The value is a string consisting of a floating-point number and a units designator. The variable receives NULL if the attribute is not set. See top for details.

See also put_top

IHTMLRuleStyle::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. Set this parameter to NULL to remove the attribute. See left for details.

See also get_left

IHTMLRuleStyle::get_left

HRESULT get_left(
    VARIANT *p 
);

Retrieves the value of the CSS left attribute for the element.

p
Address of a variable that receives the value of the attribute. The value is a string consisting of a floating-point number and a units designator. The variable receives NULL if the attribute is not set. See left for details.

See also put_left

IHTMLRuleStyle::get_position

HRESULT get_position(
    BSTR *p 
);

Retrieves the value of the CSS position attribute for the element. The attribute specifies whether the element can be positioned and, if so, the position of the element relative to its parent object.

p
Address of a variable that receives the value of the attribute, which can be one of these strings:
absolute The element is placed relative to the document.
relative The element is placed relative to its parent object.
static The element cannot be positioned.
This variable receives NULL if the attribute is not set. See position for details.

The position attribute is not inherited.

IHTMLRuleStyle::put_zIndex

HRESULT put_zIndex(
    VARIANT v 
);

Sets the value of the CSS z-index attribute for the element. The attribute determines whether the element is positioned above or below the text.

v
String or value specifying the z-index. A positive value positions the element above the text, and a negative value positions it below. Set this parameter to NULL to remove the attribute. See z-index for details.

See also get_zIndex

IHTMLRuleStyle::get_zIndex

HRESULT get_zIndex(
    VARIANT *p 
);

Retrieves the value of the CSS z-index attribute for the element.

p
Address of a variable that receives the z-index. The variable receives a positive value if the element is positioned above the text, and a negative value if it is below. The variable receives NULL if the attribute is not set. See z-index for details.

See also put_zIndex

IHTMLRuleStyle::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
Set this parameter to NULL to remove the attribute. See overflow for details.

See also get_overflow

IHTMLRuleStyle::get_overflow

HRESULT get_overflow(
    BSTR *p 
);

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

p
Address of a variable that receives the value of the attribute, which can be one of these strings:
none
clip
scroll
The variable receives NULL if the attribute is not set. See overflow for details.

See also put_overflow

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