IHTMLStyle::get_textAlignIHTMLStyle::get_textAlign*
*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.

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

Up Top of Page


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.

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


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.