Word.Interfaces.TableCellData interface
An interface describing the data returned by calling tableCell.toJSON()
.
Properties
body | Gets the body object of the cell. |
cell |
Gets the index of the cell in its row. |
column |
Specifies the width of the cell's column in points. This is applicable to uniform tables. |
horizontal |
Specifies the horizontal alignment of the cell. The value can be 'Left', 'Centered', 'Right', or 'Justified'. |
row |
Gets the index of the cell's row in the table. |
shading |
Specifies the shading color of the cell. Color is specified in "#RRGGBB" format or by using the color name. |
value | Specifies the text of the cell. |
vertical |
Specifies the vertical alignment of the cell. The value can be 'Top', 'Center', or 'Bottom'. |
width | Gets the width of the cell in points. |
Property Details
body
Gets the body object of the cell.
body?: Word.Interfaces.BodyData;
Property Value
Remarks
cellIndex
Gets the index of the cell in its row.
cellIndex?: number;
Property Value
number
Remarks
columnWidth
Specifies the width of the cell's column in points. This is applicable to uniform tables.
columnWidth?: number;
Property Value
number
Remarks
horizontalAlignment
Specifies the horizontal alignment of the cell. The value can be 'Left', 'Centered', 'Right', or 'Justified'.
horizontalAlignment?: Word.Alignment | "Mixed" | "Unknown" | "Left" | "Centered" | "Right" | "Justified";
Property Value
Word.Alignment | "Mixed" | "Unknown" | "Left" | "Centered" | "Right" | "Justified"
Remarks
rowIndex
Gets the index of the cell's row in the table.
rowIndex?: number;
Property Value
number
Remarks
shadingColor
Specifies the shading color of the cell. Color is specified in "#RRGGBB" format or by using the color name.
shadingColor?: string;
Property Value
string
Remarks
value
Specifies the text of the cell.
value?: string;
Property Value
string
Remarks
verticalAlignment
Specifies the vertical alignment of the cell. The value can be 'Top', 'Center', or 'Bottom'.
verticalAlignment?: Word.VerticalAlignment | "Mixed" | "Top" | "Center" | "Bottom";
Property Value
Word.VerticalAlignment | "Mixed" | "Top" | "Center" | "Bottom"
Remarks
width
Gets the width of the cell in points.
width?: number;
Property Value
number
Remarks
Office Add-ins