Freigeben über


DoNotUseHTMLParagraphAutoSpacing-Klasse

Use Fixed Paragraph Spacing for HTML Auto Setting.When the object is serialized out as xml, its qualified name is w:doNotUseHTMLParagraphAutoSpacing.

Vererbungshierarchie

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

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

Syntax

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

Hinweise

[ISO/IEC 29500-1 1. Ausgabe]

9.7.3.15 doNotUseHTMLParagraphAutoSpacing (Use Fixed Paragraph Spacing for HTML Auto Setting)

This element specifies whether applications should use a fixed definition when interpreting automatic paragraph spacing defined by a value of true (or equivalent) on the beforeAutospacing and/or afterAutospacing attributes on the spacing element (Part 1, §17.3.1.33).

Typically, applications shall interpret these settings to match the behavior of most HTML user agents, mimicking the default spacing above and below an HTML p element without additional spacing information. This element, when present with a val attribute value of true (or equivalent), specifies that those two attributes shall result in the following settings for each value:

  • beforeAutospacing = 5 points of spacing before

  • afterAutospacing = 10 points of spacing after

[Example: Consider a WordprocessingML document with a three paragraphs using HTML autospacing, as follows:

<w:p>
<w:pPr>
<w:spacing w:beforeAutospacing="true" w:afterAutospacing="true" />
</w:pPr>
<w:r>
<w:t>Paragraph One</w:t>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:spacing w:beforeAutospacing="true" w:afterAutospacing="true" />
</w:pPr>
<w:r>
<w:t>Paragraph Two</w:t>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:spacing w:beforeAutospacing="true" w:afterAutospacing="true" />
</w:pPr>
<w:r>
<w:t>Paragraph Three</w:t>
</w:r>
</w:p>

The default presentation would result in output designed to match that of all common HTML user agents:

DocumentFormat.OpenXml.Wordprocessing.DoNotUseHTML

However, if this compatibility setting is turned on:

<w:compat>
<w:doNotUseHTMLParagraphAutoSpacing />
</w:compat>

Then the paragraphs has exact spacing of 5 points before and 10 points after, resulting in the following output:

DocumentFormat.OpenXml.Wordprocessing.DoNotUseHTML

Notice that the paragraphs are more condensed in the second example. 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

DoNotUseHTMLParagraphAutoSpacing-Member

DocumentFormat.OpenXml.Wordprocessing-Namespace