Export (0) Print
Expand All

TableJustification class

Defines the TableJustification Class. When the object is serialized out as xml, its qualified name is w:jc.

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

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

public class TableJustification : OpenXmlLeafElement

[ISO/IEC 29500-1 1st Edition]

jc (Table Alignment Exception)

This element specifies the alignment of the set of rows which are part of the current table properties exception list with respect to the text margins in the current section. When a table is placed in a WordprocessingML document that does not have the same width as the margins, this property is used to determine how the table is positioned with respect to those margins. The interpretation of property is reversed if the parent table is right to left using the bidiVisual element (§17.4.1).

If this property is omitted on a table, then the justification shall be determined by the default set of table properties on the parent table.

[Example: Consider the following WordprocessingML table, centered on the text margins with a subset of its rows justified to the left margin by a table property exception:

That exception would be specified using the following WordprocessingML:

<w:tblPrEx>
  <w:jc w:val="left"/>
</w:tblPrEx>

The jc element specifies that the rows which are part of the table properties exception table must be left aligned with respect to the text margins. end example]

Parent Elements

tblPrEx (§17.4.61); tblPrEx (§17.4.62)

Attributes

Description

val (Alignment Type)

Specifies the justification which should be applied to the parent table.

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

<w:tblPr>
  <w:jc w:val="center" />
</w:tblPr>

This table is now centered on the page. end example]

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

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

[ISO/IEC 29500-1 1st Edition]

jc (Table Row Alignment)

This element specifies the alignment of a single row in the parent table with respect to the text margins in the current section. When a table is placed in a WordprocessingML document that does not have the same width as the margins, this property is used to determine how a specific row in that table is positioned with respect to those margins. The interpretation of property is reversed if the parent table is right to left using the bidiVisual element (§17.4.1).

If this property is omitted on a table, then the justification shall be determined by the default set of table properties on the parent table.

[Example: Consider the following WordprocessingML table, centered on the text margins with its second rows justified to the left margin by a table row level justification:

That row level setting would be specified using the following WordprocessingML:

<w:trPr>
  <w:jc w:val="left"/>
</w:trPr>

The jc element specifies that the rows which are part of the table properties exception table must be left aligned with respect to the text margins. end example]

Parent Elements

trPr (§17.4.82); trPr (§17.7.6.10); trPr (§17.7.6.11); trPr (§17.4.83)

Attributes

Description

val (Alignment Type)

Specifies the justification which should be applied to the parent table.

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

<w:tblPr>
  <w:jc w:val="center" />
</w:tblPr>

This table is now centered on the page. end example]

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

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

[ISO/IEC 29500-1 1st Edition]

jc (Table Alignment)

This element specifies the alignment of the current table with respect to the text margins in the current section. When a table is placed in a WordprocessingML document that does not have the same width as the margins, this property is used to determine how the table is positioned with respect to those margins. The interpretation of property is reversed if the parent table is right to left using the bidiVisual element (§17.4.1).

If this property is omitted on a table, then the justification shall be determined by the associated table style. If this property is not specified in the style hierarchy, then the table shall be left justified with zero indentation from the leading margin (the left margin in a left-to-right table or the right margin in a right-to-left table).

[Example: Consider the following WordprocessingML table, justified to the left margin by default:

R1C1

R1C2

R1C3

R2C1

R2C2

R2C3

This table does not fill the entire width of the text margins. If the table should be right justified to the margin, as follows:

R1C1

R1C2

R1C3

R2C1

R2C2

R2C3

That requirement would be specified using the following WordprocessingML:

<w:tblPr>
  <w:jc w:val="right"/>
</w:tblPr>

The jc element specifies that the table must be right aligned with respect to the text margins. end example]

Parent Elements

tblPr (§17.4.60); tblPr (§17.4.59); tblPr (§17.7.6.4); tblPr (§17.7.6.3)

Attributes

Description

val (Alignment Type)

Specifies the justification which should be applied to the parent table.

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

<w:tblPr>
  <w:jc w:val="center" />
</w:tblPr>

This table is now centered on the page. end example]

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

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

© ISO/IEC29500: 2008.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

Show:
© 2014 Microsoft