Gets or sets line-breaking behavior within words, particularly where multiple languages appear in the object.
HRESULT IHTMLRuleStyle2::get_wordBreak(BSTR *p);HRESULT IHTMLRuleStyle2::put_wordBreak(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.
normal Default. Allows line breaking within words. break-all Behaves as
normalfor CJK text, yet allows the line to break arbitrarily for non-CJK text. This value is suited to CJK text that contains small amounts of non-CJK text.
keep-all Behaves as
normalfor non-CJK text, but disallows word breaking for CJK text. This value is suited to non-CJK text that includes small amounts of CJK text.
Returns S_OK if successful, or an error value otherwise.
Windows Internet Explorer 8. The -ms-word-break attribute is an extension to CSS, and can be used as a synonym for word-break in IE8 Standards mode.
The behaviors of the parameter values are detailed in CSS Text Level 3: W3C Working Draft (6 March 2007), sec. 4.1, "Line Breaking Restrictions: The 'word-break' Property"; and in Unicode Standard Annex #14: Line Breaking Properties.