Justification Class
Defines the Justification Class.When the object is serialized out as xml, its qualified name is w:jc.
Inheritance Hierarchy
System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlLeafElement
DocumentFormat.OpenXml.Wordprocessing.Justification
Namespace: DocumentFormat.OpenXml.Wordprocessing
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaración
Public Class Justification _
Inherits OpenXmlLeafElement
'Uso
Dim instance As Justification
public class Justification : OpenXmlLeafElement
Remarks
[ISO/IEC 29500-1 1ª edición]
17.3.1.13 jc (Paragraph Alignment)
This element specifies the paragraph alignment which shall be applied to text in this paragraph.
If this element is omitted on a given paragraph, its value is determined by the setting previously set at any level of the style hierarchy (i.e. that previous setting remains unchanged). If this setting is never specified in the style hierarchy, then no alignment is applied to the paragraph.
[Example: Consider a paragraph which should be right justified to the right page side paragraph extents within a document. This constraint is specified in the following WordprocessingML content:
<w:pPr>
<w:jc w:val="right" />
</w:pPr>
The paragraph is now right justified on the page. end example]
Parent Elements |
---|
pPr (§17.3.1.26); pPr (§17.3.1.25); pPr (§17.7.5.2); pPr (§17.7.6.1); pPr (§17.9.23); pPr (§17.7.8.2) |
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:
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. Los extractos anteriores han sido traducidos del inglés al español por Microsoft (o algunos de sus agentes) e ISO no asume ningún tipo de responsabilidad por dichas traducciones.
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.