Contents Index Topic Contents | ||
Previous Topic: IHTMLStyle::get_styleFloat Next Topic: IHTMLStyle::get_textDecoration |
IHTMLStyle::get_textAlign
HRESULT get_textAlign( BSTR *p );Retrieves the value of the CSS text-align attribute for the element.
- Returns S_OK if successful, or an error value otherwise.
- 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
IHTMLStyle::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.
- Returns S_OK if successful, or an error value otherwise.
- 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
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.