Magazine |
| | Community |
| | Workshop |
| | Tools & Samples |
| | Training |
| | Site Info |
|
|
||||||||
|
Retrieves the values of the cascading style sheet (CSS) font-style, font-variant, font-weight, font-size, line-height, and font-family attributes for the element.
Syntax
HRESULT get_font( BSTR *p );
Parameters
- p
- Address of a variable that receives the values of the font-related cascading style sheet (CSS) attributes. See font for details. This parameter receives NULL if no font-related cascading style sheet (CSS) attributes are set for the element.
Return Value
Returns S_OK if successful, or an error value otherwise.
See Also
put_font
Retrieves the values of the cascading style sheet (CSS) font-style, font-variant, font-weight, font-size, line-height, and font-family attributes for the element.
Syntax
HRESULT put_font( BSTR v );
Parameters
- 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.
Return Value
Returns S_OK if successful, or an error value otherwise.
See Also
get_font
Does this content meet your programming needs? Write us!
© 1998 Microsoft Corporation. All rights reserved. Terms of use.