Gets or sets the type of alignment used to justify text in the object.
HRESULT IHTMLStyle2::get_textJustify(BSTR *p);HRESULT IHTMLStyle2::put_textJustify(BSTR v);
- Pointer to a variable of type BSTR that receives one of the values listed in Possible Values.
- BSTR that specifies one of the values listed in Possible Values.
auto Default. Allows the browser to determine which justification algorithm to apply. distribute Handles spacing much like the
newspapervalue. This form of justification is optimized for documents in Asian languages, such as Thai.
distribute-all-lines Justifies lines of text in the same way as the
distributevalue, except that it also justifies the last line of the paragraph. This form of justification is intended for ideographic text.
distribute-center-last Not implemented. inter-cluster Justifies lines of text that contain no inter-word spacing. This form of justification is optimized for documents in Asian languages. inter-ideograph Justifies lines of ideographic text, and increases or decreases both inter-ideograph and inter-word spacing. inter-word Aligns text by increasing the space between words. This value's spacing behavior is the fastest way to make all lines of text equal in length. Its justification behavior does not affect the last line of the paragraph. kashida Justifies lines of text by elongating characters at chosen points. This form of justification is intended for Arabic script languages. Supported in Microsoft Internet Explorer 5.5 and later. newspaper Increases or decreases the spacing between letters and between words. It is the most sophisticated form of justification for Latin alphabets.
Returns S_OK if successful, or an error value otherwise.
Windows Internet Explorer 8. The -ms-text-justify attribute is an extension to CSS, and can be used as a synonym for text-justify in IE8 Standards mode.
For this property to affect text layout, the IHTMLStyle::textAlign property must be set to
The property applies to block elements.