Back to DOM
TableJustificationValuesEnum
Definition
- Namespace
- DOM.Enums
- Assembly
- DOM.dll
Specifies the horizontal alignment of a table within its containing area.
Remarks
Used by and applies to the table as a whole. For per-cell alignment use instead. TableStyle.Justification JustificationValues
Examples
csharp
1// 1. Left-align the table
2var style = new TableStyle { Justification = TableJustificationValues.left };
3
csharp
1// 2. Center the table
2var style = new TableStyle { Justification = TableJustificationValues.center };
3
csharp
1// 3. Right-align the table
2var style = new TableStyle { Justification = TableJustificationValues.right };
3
csharp
1// 4. Center a floating table
2var style = new TableStyle
3{
4 Justification = TableJustificationValues.center,
5 PlacementPosition = new PlacementPosition { HorizantalAlignment = HorizontalAlignmentValues.Center }
6};
7
Fields
center
Center the table horizontally.
left
Align the table to the left of its container.
right
Align the table to the right of its container.