IHTMLRuleStyle

IHTMLRuleStyle


This interface provides access to the methods that are returned when you access style property of a rule. This serves the same purpose as IHTMLStyle but in the context of a particular rule.

IHTMLRuleStyle Methods
put_fontFamily   get_fontFamily   put_fontStyle  
get_fontStyle   put_fontVariant   get_fontVariant  
put_fontWeight   get_fontWeight   put_fontSize  
get_fontSize   put_font   get_font  
put_color   get_color   put_background  
get_background   put_backgroundColor   get_backgroundColor  
put_backgroundImage   get_backgroundImage   put_backgroundRepeat  
get_backgroundRepeat   put_backgroundAttachment    get_backgroundAttachment   
put_backgroundPosition    get_backgroundPosition    put_backgroundPositionX   
get_backgroundPositionX    put_backgroundPositionY    get_backgroundPositionY   
put_wordSpacing   get_wordSpacing   put_letterSpacing  
get_letterSpacing   put_textDecoration   get_textDecoration  
put_textDecorationNone    get_textDecorationNone    put_textDecorationUnderline   
get_textDecorationUnderline    put_textDecorationOverline   get_textDecorationOverline  
put_textDecorationLineThrough   get_textDecorationLineThrough   put_textDecorationBlink   
get_textDecorationBlink   put_verticalAlign   get_verticalAlign  
put_textTransform   get_textTransform   put_textAlign  
get_textAlign   put_textIndent   get_textIndent  
put_lineHeight   get_lineHeight   put_marginTop  
get_marginTop   put_marginRight   get_marginRight  
put_marginBottom   get_marginBottom   put_marginLeft  
get_marginLeft   put_margin   get_margin  
put_paddingTop   get_paddingTop   put_paddingRight  
get_paddingRight   put_paddingBottom   get_paddingBottom  
put_paddingLeft   get_paddingLeft   put_padding  
get_padding   put_border   get_border  
put_borderTop   get_borderTop   put_borderRight  
get_borderRight   put_borderBottom   get_borderBottom  
put_borderLeft   get_borderLeft   put_borderColor  
get_borderColor   put_borderTopColor   get_borderTopColor  
put_borderRightColor   get_borderRightColor   put_borderBottomColor  
get_borderBottomColor   put_borderLeftColor   get_borderLeftColor  
put_borderWidth   get_borderWidth   put_borderTopWidth  
get_borderTopWidth   put_borderRightWidth   get_borderRightWidth  
put_borderBottomWidth   get_borderBottomWidth   put_borderLeftWidth  
get_borderLeftWidth   put_borderStyle   get_borderStyle  
put_borderTopStyle   get_borderTopStyle   put_borderRightStyle  
get_borderRightStyle   put_borderBottomStyle   get_borderBottomStyle  
put_borderLeftStyle   get_borderLeftStyle   put_width  
get_width   put_height   get_height  
put_styleFloat   get_styleFloat   put_clear  
get_clear   put_display   get_display  
put_visibility   get_visibility   put_listStyleType  
get_listStyleType   put_listStylePosition   get_listStylePosition  
put_listStyleImage   get_listStyleImage   put_listStyle  
get_listStyle   put_whiteSpace   get_whiteSpace  
put_top   get_top   put_left  
get_left   get_position   put_zIndex  
get_zIndex   put_overflow   get_overflow  
put_pageBreakBefore   get_pageBreakBefore   put_pageBreakAfter  
get_pageBreakAfter   put_cssText   get_cssText  
put_cursor   get_cursor   put_clip  
get_clip   put_filter   get_filter  
setAttribute   getAttribute   removeAttribute  

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

IHTMLRuleStyle::get_fontFamily

HRESULT get_fontFamily( 
    BSTR *p 
);

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

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

See also put_fontFamily

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

IHTMLRuleStyle::get_fontStyle

HRESULT get_fontStyle( 
    BSTR *p 
);

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

p
Address of a variable that receives the value of the attribute, which can be one of these strings:
normal
italic
oblique
See font-style for details. This parameter receives NULL if the attribute is not set.

See also put_fontStyle

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

See also get_fontVariant

IHTMLRuleStyle::get_fontVariant

HRESULT get_fontVariant( 
    BSTR *p 
);

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

p
Address of a variable that receives the value of the attribute, which can be one of these strings:
normal
small-caps
See font-variant for details. This parameter receives NULL if the attribute is not set.

See also put_fontVariant

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

IHTMLRuleStyle::get_fontWeight

HRESULT get_fontWeight(
    BSTR *p 
);

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

p
Address of a variable that receives the value of the attribute, which can be one of these strings:
normal
bold
bolder
lighter
100
200
300
400
500
600
700
800
900
See font-weight for details. This parameter receives NULL if the attribute is not set.

See also put_fontWeight

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

IHTMLRuleStyle::get_fontSize

HRESULT get_fontSize(
    VARIANT *p 
);

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

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

See also put_fontSize

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

IHTMLRuleStyle::get_font

HRESULT get_font(
    BSTR *p 
);

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

p
Address of a variable that receives the values of the font-related CSS attributes. See font for details. This parameter receives NULL if no font-related CSS attributes are set for the element.

See also put_font

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