Gets whether the text in the object is left-aligned, right-aligned, centered, or justified.
HRESULT IHTMLCurrentStyle::get_textAlign(BSTR *p);
- Pointer to a variable of type BSTR that receives one of the values listed in Possible Values.
left Default. Text is aligned to the left. right Text is aligned to the right. center Text is centered. justify Text is justified.
Returns S_OK if successful, or an error value otherwise.
The property applies to block elements. The property is inherited by all block-level objects inside a div object. This parameter receives NULL if the attribute is not set.
justifypossible value is available as of Microsoft Internet Explorer 4.0.