Freigeben über


WordPerfectJustification-Klasse

Emulate WordPerfect 6.x Paragraph Justification.When the object is serialized out as xml, its qualified name is w:wpJustification.

Vererbungshierarchie

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

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

Syntax

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

Hinweise

[ISO/IEC 29500-1 1. Ausgabe]

9.7.3.56 wpJustification (Fit To Expanded Width When Performing Full Justification)

This element specifies that applications should perform a specific algorithm when determining the contents of each line in a fully justified paragraph (resulting from the use of the jc element (Part 1, §17.3.1.13)). This setting typically results in more words being fitted into lines (by reducing inter-word spacing as necessary).

Typically, applying full justification to a paragraph does not change the placement of line breaks, as inter-word spacing is expanded to ensure the resulting text is fully justified. This element, when present with a val attribute value of true (or equivalent), specifies that applications shall determine the contents of each line in a fully justified paragraph using the following algorithm:

For each line in the fully justified paragraph,

  • Determine the actual line width, , in pixels

  • Calculate the "effective" line width by the following factor:

  • Determine the text which can be displayed in a line of the "effective" line width

  • Decrease the inter-word spacing as necessary to fit that text in the actual line width

[Example: Consider a WordprocessingML document with one or more paragraphs using full paragraph justification:

<w:p>
<w:pPr>
<w:jc w:val="both" />
</w:pPr>
…
</w:p>

If this compatibility setting is turned on:

<w:compat>
<w:wpJustification />
</w:compat>

Then, for a line 1000 pixels wide, an application would calculate the effective width as follows:

This effective width is then used to determine how much text can be displayed on line. After calculating the text, the application can display the text on the actual line, fully justified. 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

WordPerfectJustification-Member

DocumentFormat.OpenXml.Wordprocessing-Namespace