Edit

Share via


Word.Interfaces.TableCellUpdateData interface

An interface for updating data on the TableCell object, for use in tableCell.set({ ... }).

Properties

body

Gets the body object of the cell.

columnWidth

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

horizontalAlignment

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

shadingColor

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.

verticalAlignment

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

Property Details

body

Gets the body object of the cell.

TypeScript
body?: Word.Interfaces.BodyUpdateData;

Property Value

Remarks

[ API set: WordApi 1.3 ]

columnWidth

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

TypeScript
columnWidth?: number;

Property Value

number

Remarks

[ API set: WordApi 1.3 ]

horizontalAlignment

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

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

Property Value

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

Remarks

[ API set: WordApi 1.3 ]

shadingColor

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

TypeScript
shadingColor?: string;

Property Value

string

Remarks

[ API set: WordApi 1.3 ]

value

Specifies the text of the cell.

TypeScript
value?: string;

Property Value

string

Remarks

[ API set: WordApi 1.3 ]

verticalAlignment

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

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

Property Value

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

Remarks

[ API set: WordApi 1.3 ]