IHTMLRuleStyle::put_color
IHTMLRuleStyle

IHTMLRuleStyle::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. The color can be one of the color names or values given in the Color Table reference documentation. See color for details.

See also get_color

IHTMLRuleStyle::get_color

HRESULT get_color( 
    VARIANT *p 
);

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

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

See also put_color

IHTMLRuleStyle::put_background

HRESULT put_background( 
    BSTR v 
);

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

v
String specifying the value of the attribute, or NULL to remove it. See background for details.

See also get_background

IHTMLRuleStyle::get_background

HRESULT get_background( 
    BSTR *p 
);

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

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

See also put_background

IHTMLRuleStyle::put_backgroundColor

HRESULT put_backgroundColor( 
    VARIANT v 
);

Sets the CSS background-color attribute for the element.

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

See also get_backgroundColor

IHTMLRuleStyle::get_backgroundColor

HRESULT get_backgroundColor(
    VARIANT *p 
);

Retrieves the value of the CSS background-color attribute for the element.

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

See also put_backgroundColor

IHTMLRuleStyle::put_backgroundImage

HRESULT put_backgroundImage( 
    BSTR v 
);

Sets a CSS background-image attribute for the element.

v
String specifying the URL of the background image, or NULL to remove the attribute. See background-image for details.

See also get_backgroundImage

IHTMLRuleStyle::get_backgroundImage

HRESULT get_backgroundImage( 
    BSTR *p 
);

Retrieves the value of the CSS background-image attribute for the element.

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

See also put_backgroundImage

IHTMLRuleStyle::put_backgroundRepeat

HRESULT put_backgroundRepeat(
    BSTR v 
);

Sets the value of the CSS background-repeat attribute for the element. The attribute determines whether and how the background image, if any, is repeated.

v
String specifying whether and how the image is repeated, or NULL to remove the attribute. Can be one of these strings:
norepeat Do not repeat.
repeaty Repeat vertically.
repeat Repeat both horizontally and vertically.
repeatx Repeat horizontally.
See background-repeat for details.

See also get_backgroundRepeat

IHTMLRuleStyle::get_backgroundRepeat

HRESULT get_backgroundRepeat( 
    BSTR *p 
);

Retrieves the value of the CSS background-repeat attribute for the element.

p
Address of a variable that receives the value of the attribute, which can be one of these strings:
norepeat Do not repeat.
repeaty Repeat vertically.
repeat Repeat both horizontally and vertically.
repeatx Repeat horizontally.
See background-image for details. This parameter receives NULL if the attribute is not set.

See also put_backgroundRepeat

IHTMLRuleStyle::put_backgroundAttachment

HRESULT put_backgroundAttachment(
    BSTR v 
);

Sets the value of the CSS background-attachment attribute for the element. If the element has a background image, this attribute determines if the image is fixed with regard to the text of the element, or if it scrolls with the text.

v
String specifying the value of the attribute, or NULL to remove it. Can be one of these strings:
fixed Background image remains fixed.
scroll Background image scrolls with text.
See background-attachment for details.

See also get_backgroundAttachment

IHTMLRuleStyle::get_backgroundAttachment

HRESULT get_backgroundAttachment(
    BSTR *p 
);

Retrieves the value of the CSS background-attachment attribute for the element.

p
Address of a variable that receives the value of the attribute, which can be one of these strings:
fixed Background image remains fixed.
scroll Background image scrolls with text.
See background-attachment for details.

See also put_backgroundAttachment

IHTMLRuleStyle::put_backgroundPosition

HRESULT put_backgroundPosition(
    BSTR v 
);

Sets the value of the CSS background-position attribute for the element. The attribute determines the initial position of the background image, if any.

v
String specifying the initial background position, or NULL to remove the attribute. See background-position for details.

See also get_backgroundPosition

IHTMLRuleStyle::get_backgroundPosition

HRESULT get_backgroundPosition(
    BSTR *p 
);

Retrieves the value of the CSS background-position attribute for the element.

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

See also put_backgroundPosition

IHTMLRuleStyle::put_backgroundPositionX

HRESULT put_backgroundPositionX( 
    VARIANT v 
);

Sets the x-coordinate of the CSS background-position attribute for the element. The attribute determines the initial horizontal position of the background image, if any.

v
String or value specifying the x-coordinate, or NULL to remove the attribute. See background-position for details.

See also get_backgroundPositionX

IHTMLRuleStyle::get_backgroundPositionX

HRESULT get_backgroundPositionX( 
    VARIANT *p 
);

Retrieves the x-coordinate of the CSS background-position attribute for the element.

p
Address of a variable that receives the x-coordinate. See background-image for details. This parameter receives NULL if the parameter is not set.

See also put_backgroundPositionX

IHTMLRuleStyle::put_backgroundPositionY

HRESULT put_backgroundPositionY(
    VARIANT v 
);

Sets the y-coordinate of the CSS background-position attribute for the element. The attribute determines the initial vertical position of the background image, if any.

v
String or value specifying the y-coordinate, or NULL to remove the attribute. See background-position for details.

See also get_backgroundPositionY

IHTMLRuleStyle::get_backgroundPositionY

HRESULT get_backgroundPositionY( 
    VARIANT *p 
);

Retrieves the y-coordinate of the CSS background-position attribute for the element.

p
Address of a variable that receives the y-coordinate. See background-position for details. This parameter receives NULL if the attribute is not set.

See also put_backgroundPositionY

IHTMLRuleStyle::put_wordSpacing

HRESULT put_wordSpacing(
    VARIANT v 
);

Sets the value of the CSS word-spacing attribute for the element. The attribute determines the amount of space to add to the default space between words in the element's text.

v
String or value specifying the amount of space to add. A negative value is valid. Set this parameter to NULL to remove the attribute.

See also get_wordSpacing

IHTMLRuleStyle::get_wordSpacing

HRESULT get_wordSpacing(
    VARIANT *p 
);

Retrieves the value of the CSS word-spacing attribute for the element.

p
Address of a variable that receives the value of the attribute, or NULL if the attribute is not set.

See also put_wordSpacing

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

See also get_letterSpacing

IHTMLRuleStyle::get_letterSpacing

HRESULT get_letterSpacing( 
    VARIANT *p 
);

Retrieves the value of the CSS letter-spacing for the element.

p
Address of a variable that receives the value of the attribute, or NULL if the attribute is not set. See letter-spacing for details.

See also put_letterSpacing

IHTMLRuleStyle::put_textDecoration

HRESULT put_textDecoration( 
    BSTR v 
);

Sets the value of the CSS text-decoration attribute for the element.

v
String or value specifying the text decorations. Can be "none" or one of the following strings:
underline
overline
line-through
Set this parameter to NULL to remove the attribute. See text-decoration for details.

See also get_textDecoration

IHTMLRuleStyle::get_textDecoration

HRESULT get_textDecoration(
    BSTR *p 
);

Retrieves the value of the CSS text-decoration attribute for the element.

p
Address of a variable that receives the value of the attribute, or NULL if the attribute is not set. See text-decoration for details.

See also put_textDecoration

IHTMLRuleStyle::put_textDecorationNone

HRESULT put_textDecorationNone(
    VARIANT_BOOL v 
);

Sets the value of the element's CSS text-decoration attribute to "none", or removes the "none" value from the attribute.

v
Boolean value. TRUE sets the attribute to "none"; FALSE removes the "none" value from the attribute. See text-decoration for details.

See also get_textDecorationNone

IHTMLRuleStyle::get_textDecorationNone

HRESULT get_textDecorationNone(
    VARIANT_BOOL *p 
);

Retrieves whether the element's CSS text-decoration attribute has a value of "none".

p
Address of a variable that receives TRUE if the attribute has a value of "none", or FALSE if not. See text-decoration for details.

See also put_textDecorationNone

IHTMLRuleStyle::put_textDecorationUnderline

HRESULT put_textDecorationUnderline(
    VARIANT_BOOL v 
);

Sets the value of the element's CSS text-decoration attribute to "underline", or removes the "underline" value from the attribute.

v
Boolean value. TRUE sets the attribute to "underline"; FALSE removes the "underline" value from the attribute. See text-decoration for details.

See also get_textDecorationUnderline

IHTMLRuleStyle::get_textDecorationUnderline

HRESULT get_textDecorationUnderline(
    VARIANT_BOOL *p 
);

Retrieves whether the element's CSS text-decoration attribute has a value of "underline".

p
Address of a variable that receives TRUE if the attribute has a value of "underline", or FALSE if not. See text-decoration for details.

See also put_textDecorationUnderline

IHTMLRuleStyle::put_textDecorationOverline

HRESULT put_textDecorationOverline(
    VARIANT_BOOL v 
);

Sets the value of the element's CSS text-decoration attribute to "overline", or removes the "overline" value from the attribute.

v
Boolean value. TRUE sets the attribute to "overline"; FALSE removes the "overline" value from the attribute. See text-decoration for details.

See also get_textDecorationOverline

IHTMLRuleStyle::get_textDecorationOverline

HRESULT get_textDecorationOverline( 
    VARIANT_BOOL *p 
);

Retrieves whether the element's CSS text-decoration attribute has a value of "overline".

p
Address of a variable that receives TRUE if the attribute has a value of "overline", or FALSE if not. See text-decoration for details.

See also put_textDecorationOverline

IHTMLRuleStyle::put_textDecorationLineThrough

HRESULT put_textDecorationLineThrough(
    VARIANT_BOOL v 
);

Sets the value of the element's CSS text-decoration attribute to "line-through", or removes the "line-through" value from the attribute.

v
Boolean value. TRUE sets the attribute to "line-through"; FALSE removes the "line-through" value from the attribute. See text-decoration for details.

See also get_textDecorationLineThrough

IHTMLRuleStyle::get_textDecorationLineThrough

HRESULT get_textDecorationLineThrough( 
    VARIANT_BOOL *p 
);

Retrieves whether the element's CSS text-decoration attribute has a value of "line-through".

p
Address of a variable that receives TRUE if the attribute has a value of "line-through", or FALSE if not. See text-decoration for details.

See also put_textDecorationLineThrough

IHTMLRuleStyle::put_textDecorationBlink

HRESULT put_textDecorationBlink( 
    VARIANT_BOOL v 
);

Sets the value of the element's CSS text-decoration attribute to "blink", or removes the "blink" value from the attribute.

v
Boolean value. TRUE sets the attribute to "blink"; FALSE removes the "blink" value from the attribute. See text-decoration for details.

See also get_textDecorationBlink

IHTMLRuleStyle::get_textDecorationBlink

HRESULT get_textDecorationBlink(
    VARIANT_BOOL *p 
);

Retrieves whether the element's CSS text-decoration attribute has a value of "blink".

p
Address of a variable that receives TRUE if the attribute has a value of "blink", or FALSE if not. See text-decoration for details.

See also put_textDecorationBlink

IHTMLRuleStyle::put_verticalAlign

HRESULT put_verticalAlign(
    VARIANT v 
);

Sets the value of the CSS vertical-align attribute for the element. The attribute determines the vertical positioning of the element.

v
String or value specifying the vertical alignment. Can be a percentage (either positive or negative) of the line height of the element, or one of the values below. These values are relative to the parent element;
baseline
middle
sub
super
text-top
text-bottom
These values are relative to the formatted line of which the element is a part:
top
bottom
Set this parameter to NULL to remove the attribute. See vertical-align for details.

See also get_verticalAlign

IHTMLRuleStyle::get_verticalAlign

HRESULT get_verticalAlign(
    VARIANT *p 
);

Retrieves the value of the CSS vertical-align attribute for the element.

p
Address of a variable that receives the value of the attribute, or NULL if the attribute is not set. Can be one of these strings:
baseline
middle
sub
super
text-top
text-bottom
top
bottom
See vertical-align for details.

See also put_verticalAlign

IHTMLRuleStyle::put_textTransform

HRESULT put_textTransform(
    BSTR v 
);

Sets the value of the CSS text-transform attribute for the element.

v
String specifying the text transformation, or NULL to remove the attribute. Can be one of these strings:
capitalize First letter in the text is capitalized.
lowercase All letters in the text are converted to lowercase.
uppercase All letters in the text are converted to uppercase.
See text-transform for details.

See also get_textTransform

IHTMLRuleStyle::get_textTransform

HRESULT get_textTransform(
    BSTR *p 
);

Retrieves the value of the CSS text-transform attribute for the element.

p
Address of a variable that receives the value of the attribute, which can be one of these strings:
capitalize First letter in the text is capitalized.
lowercase All letters in the text are converted to lowercase.
uppercase All letters in the text are converted to uppercase.
See text-transform for details. This parameter receives NULL if the attribute is not set.

See also put_textTransform

IHTMLRuleStyle::put_textAlign

HRESULT put_textAlign(
    BSTR v 
);

Sets the value of the CSS text-align attribute for the element. The attribute determines the alignment of the element's text.

v
String specifying the text alignment, or NULL to remove the attribute. Can be one of these strings:
left
right
center
justify
See text-align for details.

See also get_textAlign

IHTMLRuleStyle::get_textAlign

HRESULT get_textAlign( 
    BSTR *p 
);

Retrieves the value of the CSS text-align 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
center
justify
See text-align for details. This parameter receives NULL if the attribute is not set.

See also put_textAlign

IHTMLRuleStyle::put_textIndent

HRESULT put_textIndent( 
    VARIANT v 
);

Sets the value of the CSS text-indent attribute for the element. The attribute determines the amount of indention before the element's first line of formatted text.

v
String or value specifying the amount of indention, or NULL to remove the attribute. The amount can be positive or negative. See text-indent for details.

See also get_textIndent

IHTMLRuleStyle::get_textIndent

HRESULT get_textIndent(
    VARIANT *p 
);

Retrieves the value of the CSS text-indent attribute for the element.

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

See also put_textIndent

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

IHTMLRuleStyle::get_lineHeight

HRESULT get_lineHeight(
    VARIANT *p 
);

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

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

See also put_lineHeight

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

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