Share via


LevelJustification Class

Justification.When the object is serialized out as xml, its qualified name is w:lvlJc.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Wordprocessing.LevelJustification

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

Syntax

'Declaration
Public Class LevelJustification _
    Inherits OpenXmlLeafElement
'Usage
Dim instance As LevelJustification
public class LevelJustification : OpenXmlLeafElement

Remarks

[ISO/IEC 29500-1 1st Edition]

17.9.8 lvlJc (Justification)

This element specifies the type of justification used on a numbering level's text within a given numbering level. This justification is applied relative to the text margin of the parent numbered paragraph in the document.

If omitted, the paragraph shall have left justification relative to the text margin in left-to-right paragraphs, and right justification relative to the text margin in right-to-left paragraphs.

[Example: Consider the numbering level defined below:

<w:lvl w:ilvl="8" w:tplc="756C1446" w:tentative="1">
  <w:start w:val="1" /> 
  <w:numFmt w:val="bullet" /> 
  <w:lvlText w:val="•" /> 
  <w:lvlJc w:val="left" /> 
  …
</w:lvl>

In this numbering level, the given numbering symbol is left justified with respect to the text margin, therefore the numbering extends left from the text margin towards the text (assuming a left-to-right paragraph). end example]

A numbering level's text is the numeral, symbol, character, graphic, etc. used to create a numbered paragraph as defined by the lvlText element (§17.9.12).

[Example: Consider the numbered paragraphs below:

1) Example one

a. Example two

• Example three

The numbering symbol in these three numbered paragraphs are "1", "a", and "•", respectively. end example]

Parent Elements

lvl (§17.9.6); lvl (§17.9.7)

Attributes

Description

val (Alignment Type)

Specifies the justification which should be applied to the parent object within a document.

The possible values (see below) for this attribute are always specified with left specifying justification relative to the leading edge of the paragraph, and therefore change semantic between right-to-left and left-to-right documents.

[Example: Consider the following WordprocessingML fragment for a paragraph in a document:

<w:pPr>
  <w:jc w:val="end" />
</w:pPr>

This paragraph is now right justified on the page for a left-to-right paragraph, left justfied for a right-to-left paragraph. end example]

The possible values for this attribute are defined by the ST_Jc simple type (§17.18.44).

[Note: The W3C XML Schema definition of this element’s content model (CT_Jc) is located in §A.1. end note]

© 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

LevelJustification Members

DocumentFormat.OpenXml.Wordprocessing Namespace