Freigeben über


DoNotWrapTextWithPunctuation-Klasse

Do Not Allow Hanging Punctuation With Character Grid.When the object is serialized out as xml, its qualified name is w:doNotWrapTextWithPunct.

Vererbungshierarchie

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

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

Syntax

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

Hinweise

[ISO/IEC 29500-1 1. Ausgabe]

9.7.3.19 doNotWrapTextWithPunct (Do Not Allow Hanging Punctuation With Character Grid)

This element specifies whether applications shall allowing hanging punctuation when:

  • The overflowPunct element (Part 1, §17.3.1.21) is turned on for a paragraph

  • A document grid is defined using the docGrid element (Part 1, §17.6.5) which defines the number of characters per line

Typically, paragraphs which allow hanging punctuation shall allow the number of characters on a line as specified by the document grid to be exceeded by one in order to allow for hanging punctuation. This element, when present with a val attribute value of true (or equivalent), specifies that the document grid shall never be exceeded for hanging punctuation.

[Example: Consider a WordprocessingML document with a document grid set to allow 10 characters per line:

<w:sectPr>
<w:docGrid w:type="snapTOCars" w:charSpace="146636" … />
</w:sectPr>

If the eleventh character on the line was a punctuation characters, the default presentation would allow that character to behave as hanging punctuation on the first line:

DocumentFormat.OpenXml.Wordprocessing.DoNotWrapTex

However, if this compatibility setting is turned on:

<w:compat>
<w:doNotwrapTextWithPunct />
</w:compat>

Then the character grid cannot be exceeded even for the hanging punctuation, resulting in the following output:

DocumentFormat.OpenXml.Wordprocessing.DoNotWrapTex

The hanging punctuation was disallowed, moving it (and the character before it, since that character cannot begin a line) to 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. Die oben aufgeführten Textauszüge wurden von Microsoft (und/oder den Microsoft-Vendoren) von Englisch nach Deutsch übersetzt, und im Rahmen von ISO wird keinerlei Verantwortung für diese Übersetzungen übernommen.

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic) Member dieses Typs sind threadsicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.

Siehe auch

Referenz

DoNotWrapTextWithPunctuation-Member

DocumentFormat.OpenXml.Wordprocessing-Namespace