Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

wordBreak property

Sets or retrieves line-breaking behavior within words, particularly where multiple languages appear in the object.

CSS Text Level 3, Section 5.2

Syntax

Integer value = object.put_wordBreak( v);Integer value = object.get_wordBreak(* sBreak);

Property values

Type: BSTR

normal (normal)

Default. Allows line breaking within words.

break-all (break-all)

Behaves as normal for 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 (keep-all)

Behaves as normal for 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.

String format

normal | break-all | keep-all

CSS information

Applies ToAll elements
Mediavisual
Inherited1
Initial Value

Standards information

Remarks

Windows Internet Explorer 8. The IHTMLStyle2::wordBreak attribute is an extension to CSS, and can be used as a synonym for word-break in IE8 Standards mode.

When using the IHTMLStyle2::wordBreak attribute with a table, you must set the IHTMLStyle2::tableLayout attribute to fixed on the table.

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.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.