IHTMLHRElement

IHTMLHRElement


This interface draws a horizontal rule.

This element is a block element.

IHTMLHRElement Methods
put_align   get_align   put_color  
get_color   put_noShade   get_noShade  
put_width   get_width   put_size  
get_size  

IHTMLHRElement::put_align

HRESULT put_align(
    BSTR v
);

Displays the element left flush, right flush, or centered relative to the display or table.

v
String specifying the alignment. Can be one of these values:
center Align to the center.
left Align to the left edge.
right Align to the right edge.

See also get_align

IHTMLHRElement::get_align

HRESULT get_align(
    BSTR *p
);

Displays the element left flush, right flush, or centered relative to the display or table.

p
Address of a variable that receives one of these values:
center Align to the center.
left Align to the left edge.
right Align to the right edge.

See also put_align

IHTMLHRElement::put_color

HRESULT put_color(
    VARIANT v
);

Sets the color to be used by the horizontal rule.

v
String or value specifying the color. It can be one of the color names or values given in the Color Table reference documentation.

See also get_color

IHTMLHRElement::get_color

HRESULT get_color(
    VARIANT *p
);

Retrieves the color to be used by the horizontal rule.

v
String or value specifying the color. It can be one of the color names or values given in the Color Table reference documentation.

See also put_color

IHTMLHRElement::put_noShade

HRESULT put_noShade(
    VARIANT_BOOL v
);

Specifies whether to draw the horizontal rule with 3-D shading.

v
Shading flag. If TRUE, the rule is 3-D shaded; if FALSE, it is not.

The default value for this property is FALSE.

See also get_noShade

IHTMLHRElement::get_noShade

HRESULT get_noShade(
    VARIANT_BOOL *p
);

Determines whether the horizontal rule is drawn with 3-D shading.

p
Address of a variable that receives TRUE if 3-D shading is used, or FALSE if not.

The default value for this property is FALSE.

See also put_noShade

IHTMLHRElement::put_width

HRESULT put_width(
    VARIANT v
);

Sets the calculated width of the horizontal rule, in pixels.

v
Value specifying the width.

This property is an integer value. Although an HTML author can specify the width as a percentage, this property always specifies the width in pixels.

See also get_width

IHTMLHRElement::get_width

HRESULT get_width(
    VARIANT *p
);

Retrieves the calculated width of the horizontal rule, in pixels.

p
Address of a variable that receives the width.

This property is an integer value. Although an HTML author can specify the width as a percentage, this property always specifies the width in pixels.

See also put_width

IHTMLHRElement::put_size

HRESULT put_size(
    VARIANT v
);

Sets the height of the horizontal rule, in pixels.

v
Value specifying the height.

See also get_size

IHTMLHRElement::get_size

HRESULT get_size(
    VARIANT *p
);

Retrieves the height of the horizontal rule, in pixels.

p
Address of a variable that receives the height.

See also put_size

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