Поделиться через


DoNotHyphenateCaps Class

Do Not Hyphenate Words in ALL CAPITAL LETTERS.When the object is serialized out as xml, its qualified name is w:doNotHyphenateCaps.

Inheritance Hierarchy

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

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

Syntax

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

Remarks

[ISO/IEC 29500-1 1st Edition]

17.15.1.37 doNotHyphenateCaps (Do Not Hyphenate Words in ALL CAPITAL LETTERS)

This element specifies whether or not words comprised of all capital letters shall be hyphenated within a given document when automatic hyphenation is specified via the autoHyphenation element (§17.15.1.10).

If this element is omitted, then words in ALL CAPITAL LETTERS shall be hyphenated when the document is hyphenated.

[Example: Consider a document which is automatically hyphenated containing the following paragraph of content:

DocumentFormat.OpenXml.Wordprocessing.DoNotHyphena

If words in ALL CAPITAL LETTERS must not be hyphenated, this requirement would be specified by adding the following WordprocessingML to the document settings part:

<w:doNotHyphenateCaps w:val="true"/>

The resulting content would not be hyphenated:

DocumentFormat.OpenXml.Wordprocessing.DoNotHyphena

The doNotHyphenateCaps element val set to true, specifying that the first line of text to end with the word SHORT as the word HYPHENATION had to be moved to the second line since it could not fit in its entirety on the first line.

Conversely, setting the doNotHyphenateCaps element val set to off (the default) caused the first line of text to contain a hyphenated portion of the word HYPHENATION as hyphenation of words comprised of all capital letters is permitted. end example]

Parent Elements

settings (§17.15.1.78)

This element’s content model is defined by the common boolean property definition in §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

DoNotHyphenateCaps Members

DocumentFormat.OpenXml.Wordprocessing Namespace