
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
HRESULT put_fontFamily(
BSTR v
);
Sets the value of the CSS font-family attribute for the element.
See also get_fontFamily
HRESULT get_fontFamily(
BSTR *p
);
Retrieves the value of the CSS font-family attribute for the element.
See also put_fontFamily
HRESULT put_fontStyle(
BSTR v
);
Sets the value of the CSS font-style attribute for the element.
| normal |
| italic |
| oblique |
See also get_fontStyle
HRESULT get_fontStyle(
BSTR *p
);
Retrieves the value of the CSS font-style attribute for the element.
| normal |
| italic |
| oblique |
See also put_fontStyle
HRESULT put_fontVariant(
BSTR v
);
Sets the value of the CSS font-variant attribute for the element.
| normal |
| small-caps |
See also get_fontVariant
HRESULT get_fontVariant(
BSTR *p
);
Retrieves the value of the CSS font-variant attribute for the element.
| normal |
| small-caps |
See also put_fontVariant
HRESULT put_fontWeight(
BSTR v
);
Sets the value of the CSS font-weight attribute for the element.
| normal |
| bold |
| bolder |
| lighter |
| 100 |
| 200 |
| 300 |
| 400 |
| 500 |
| 600 |
| 700 |
| 800 |
| 900 |
See also get_fontWeight
HRESULT get_fontWeight(
BSTR *p
);
Retrieves the value of the CSS font-weight attribute for the element.
| normal |
| bold |
| bolder |
| lighter |
| 100 |
| 200 |
| 300 |
| 400 |
| 500 |
| 600 |
| 700 |
| 800 |
| 900 |
See also put_fontWeight
HRESULT put_fontSize(
VARIANT v
);
Sets the value of the CSS font-size attribute for the element.
See also get_fontSize
HRESULT get_fontSize(
VARIANT *p
);
Retrieves the value of the CSS font-size attribute for the element.
See also put_fontSize
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.
[<font-style> || <font-variant> || <font-weight>] <font-size> / [<line-height>] <font-family>
See also 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.
See also put_font
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.