LineWrapLikeWord6 class

Office 2013 and later

Emulate Word 6.0 Line Wrapping for East Asian Text. When the object is serialized out as xml, its qualified name is w:lineWrapLikeWord6.

Namespace:  DocumentFormat.OpenXml.Wordprocessing
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

public class LineWrapLikeWord6 : OnOffType

[ISO/IEC 29500-1 1st Edition]

lineWrapLikeWord6 (Ignore Compression of Full-Width Punctuation Ending a Line)

This element specifies that applications should ignore the character compression settings specified by the characterSpacingControl element (Part 1, § when determining if one more character fits within the text margins on each line of the document. This setting typically results in a character being pushed to the following line, ignoring the fact that the character compression settings would have allowed it to fit within the text boundaries.

Typically, an application would check the character compression settings, and apply any character-level whitespace compression before attempting to fit the last character on the line. This element, when present with a val attribute value of true (or equivalent), specifies that applications shall ignore that compression and fit the character as if it should be displayed at its full width, regardless of whether the compression settings are applied.

[Example: Consider a paragraph which ends with the following two characters (with each character’s bounding box outlined for illustrative purposes:

If the document’s character compression settings were not set to doNotCompress and text extent fell at the location identified by this red line:

The last character would have compression applied to its blank half, and would fit on the line.

If this compatibility setting is turned on:

  <w:lineWrapLikeWord6 />

Then applications should compress the character, but should treat the character as full width when determining if it fits on the line; in this case, the second character would be displayed on the following line. end example]

Parent Elements

compat (Part 1, §

This element’s content model is defined by the common boolean property definition in Part 1, §17.17.4.

© ISO/IEC29500: 2008.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.