TableIndentation Class
Defines the TableIndentation Class.When the object is serialized out as xml, its qualified name is w:tblInd.
Inheritance Hierarchy
System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlLeafElement
DocumentFormat.OpenXml.Wordprocessing.TableIndentation
Namespace: DocumentFormat.OpenXml.Wordprocessing
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
Public Class TableIndentation _
Inherits OpenXmlLeafElement
'Usage
Dim instance As TableIndentation
public class TableIndentation : OpenXmlLeafElement
Remarks
[ISO/IEC 29500-1 1st Edition]
17.4.51 tblInd (Table Indent from Leading Margin)
This element specifies the indentation which shall be added before the leading edge of the current table in the document (the left edge in a left-to-right table, and the right edge in a right-to-left table). This indentation should shift the table into the text margin by the specified amount.
This value is specified in the units applied via its type attribute. Any width value of type pct or auto for this element shall be ignored.
If this element is omitted, then the table shall inherit the table indentation from the associated table style. If table indentation is never specified in the style hierarchy, no indentation shall be added to the parent table. If the resulting justification on any table row is not left after applying the value of the jc element from the three levels of this property (§17.4.27;§17.4.28;§17.4.29), then this property shall be ignored.
[Example: Consider a table which must be indented one inch from the left margin, as follows:
R1C1
R1C2
R2C1
R2C2
This setting would be specified using the following WordprocessingML:
<w:tblPr> <w:jc w:val="left"/> <w:tblInd w:w="1440" w:type="dxa"/> </w:tblPr>
If the properties on this table were now modified to justify it on the right side by setting the value of the jc element to right, as follows:
<w:tblPr> <w:jc w:val="right"/> <w:tblInd w:w="1440" w:type="dxa"/> </w:tblPr>
This table would now have no indent, as the justification is no longer on the leading edge (left):
R1C1
R1C2
R2C1
R2C2
end example]
Parent Elements |
---|
tblPr (§17.4.60); tblPr (§17.4.59); tblPr (§17.7.6.4); tblPr (§17.7.6.3) |
This element’s content model is defined by the common table measurement definition in §17.4.88.
[ISO/IEC 29500-1 1st Edition]
17.4.52 tblInd (Table Indent from Leading Margin Exception)
This element specifies the indentation which shall be added before the leading edge of the set of parent table rows which have this set of table-level property exceptions applied. This indentation should shift the table into the text margin by the specified amount in the document (the left edge in a left-to-right table, and the right edge in a right-to-left table).
This value is specified in the units applied via its type attribute. Any width value of type pct or auto for this element shall be ignored.
If this element is omitted, then the table shall inherit the table indentation from the associated table level property setting. If the resulting justification on the parent table row is not left after applying the value of the jc element from the three levels of this property (§17.4.27;§17.4.28;§17.4.29), then this property shall be ignored.
[Example: Consider a table in which the last two rows must be indented one inch from the left margin via a table-level property exception definition, as follows:
This setting would be specified using the following WordprocessingML:
<w:tblPrEx> <w:tblInd w:w="1440" w:type="dxa"/> </w:tblPrEx>
The tblInd element as a child of tblPrEx specifies that the rows with the table-level property exception must be indented by 1440 twentieths of a point (one inch). end example]
Parent Elements |
---|
tblPrEx (§17.4.61); tblPrEx (§17.4.62) |
This element’s content model is defined by the common table measurement definition in §17.4.88.
© 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.