Compartir a través de


LineWrapLikeWord6 Class

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

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Wordprocessing.OnOffType
        DocumentFormat.OpenXml.Wordprocessing.LineWrapLikeWord6

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

Syntax

'Declaration
Public Class LineWrapLikeWord6 _
    Inherits OnOffType
'Usage
Dim instance As LineWrapLikeWord6
public class LineWrapLikeWord6 : OnOffType

Remarks

[ISO/IEC 29500-1 1st Edition]

9.7.3.25 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, §17.15.1.18) 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:

DocumentFormat.OpenXml.Wordprocessing.LineWrapLike

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

DocumentFormat.OpenXml.Wordprocessing.LineWrapLike

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:compat>
<w:lineWrapLikeWord6 />
</w:compat>

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, §17.15.1.21)

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

© ISO/IEC29500: 2008.

Thread Safety

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

See Also

Reference

LineWrapLikeWord6 Members

DocumentFormat.OpenXml.Wordprocessing Namespace