Word.Interfaces.TableCellData interface

An interface describing the data returned by calling "tableCell.toJSON()".

Properties

body

Gets the body object of the cell. Read-only.

[ API set: WordApi 1.3 ]

cellIndex

Gets the index of the cell in its row. Read-only.

[ API set: WordApi 1.3 ]

columnWidth

Gets and sets the width of the cell's column in points. This is applicable to uniform tables.

[ API set: WordApi 1.3 ]

horizontalAlignment

Gets and sets the horizontal alignment of the cell. The value can be 'Left', 'Centered', 'Right', or 'Justified'.

[ API set: WordApi 1.3 ]

rowIndex

Gets the index of the cell's row in the table. Read-only.

[ API set: WordApi 1.3 ]

shadingColor

Gets or sets the shading color of the cell. Color is specified in "#RRGGBB" format or by using the color name.

[ API set: WordApi 1.3 ]

value

Gets and sets the text of the cell.

[ API set: WordApi 1.3 ]

verticalAlignment

Gets and sets the vertical alignment of the cell. The value can be 'Top', 'Center', or 'Bottom'.

[ API set: WordApi 1.3 ]

width

Gets the width of the cell in points. Read-only.

[ API set: WordApi 1.3 ]

Property Details

body

Gets the body object of the cell. Read-only.

[ API set: WordApi 1.3 ]

body?: Word.Interfaces.BodyData;

Property Value

cellIndex

Gets the index of the cell in its row. Read-only.

[ API set: WordApi 1.3 ]

cellIndex?: number;

Property Value

number

columnWidth

Gets and sets the width of the cell's column in points. This is applicable to uniform tables.

[ API set: WordApi 1.3 ]

columnWidth?: number;

Property Value

number

horizontalAlignment

Gets and sets the horizontal alignment of the cell. The value can be 'Left', 'Centered', 'Right', or 'Justified'.

[ API set: WordApi 1.3 ]

horizontalAlignment?: Word.Alignment | "Mixed" | "Unknown" | "Left" | "Centered" | "Right" | "Justified";

Property Value

Word.Alignment | "Mixed" | "Unknown" | "Left" | "Centered" | "Right" | "Justified"

rowIndex

Gets the index of the cell's row in the table. Read-only.

[ API set: WordApi 1.3 ]

rowIndex?: number;

Property Value

number

shadingColor

Gets or sets the shading color of the cell. Color is specified in "#RRGGBB" format or by using the color name.

[ API set: WordApi 1.3 ]

shadingColor?: string;

Property Value

string

value

Gets and sets the text of the cell.

[ API set: WordApi 1.3 ]

value?: string;

Property Value

string

verticalAlignment

Gets and sets the vertical alignment of the cell. The value can be 'Top', 'Center', or 'Bottom'.

[ API set: WordApi 1.3 ]

verticalAlignment?: Word.VerticalAlignment | "Mixed" | "Top" | "Center" | "Bottom";

Property Value

Word.VerticalAlignment | "Mixed" | "Top" | "Center" | "Bottom"

width

Gets the width of the cell in points. Read-only.

[ API set: WordApi 1.3 ]

width?: number;

Property Value

number