Cell Object Members

Word Developer Reference

Represents a single table cell. The Cell object is a member of the Cells collection. The Cells collection represents all the cells in the specified object.

Methods

  Name Description
Bb257475.methods(en-us,office.12).gif AutoSum Inserts an = (Formula) field that calculates and displays the sum of the values in table cells above or to the left of the cell specified in the expression.
Bb257475.methods(en-us,office.12).gif Delete Deletes a table cell or cells and optionally controls how the remaining cells are shifted.
Bb257475.methods(en-us,office.12).gif Formula Inserts an = (Formula) field that contains the specified formula into a table cell.
Bb257475.methods(en-us,office.12).gif Merge Merges the specified table cell with another table cell. The result is a single table cell.
Bb257475.methods(en-us,office.12).gif Select Selects the specified object.
Bb257475.methods(en-us,office.12).gif SetHeight Sets the height of table cells.
Bb257475.methods(en-us,office.12).gif SetWidth Sets the width of columns or cells in a table.
Bb257475.methods(en-us,office.12).gif Split Splits a single table cell into multiple cells.

Properties

  Name Description
Bb257475.properties(en-us,office.12).gif Application Returns an Application object that represents the Microsoft Word application.
Bb257475.properties(en-us,office.12).gif Borders Returns a Borders collection that represents all the borders for the specified object.
Bb257475.properties(en-us,office.12).gif BottomPadding Returns or sets the amount of space (in points) to add below the contents of a single cell or all the cells in a table. Read/write Single.
Bb257475.properties(en-us,office.12).gif Column Returns a Column object that represents the table column containing the specified cell. Read-only.
Bb257475.properties(en-us,office.12).gif ColumnIndex Returns the number of the table column that contains the specified cell. Read-only Long.
Bb257475.properties(en-us,office.12).gif Creator Returns a 32-bit integer that indicates the application in which the specified object was created. Read-only Long.
Bb257475.properties(en-us,office.12).gif FitText True if Microsoft Word visually reduces the size of text typed into a cell so that it fits within the column width. Read/write Boolean.
Bb257475.properties(en-us,office.12).gif Height Returns or sets the height of the specified table cell.
Bb257475.properties(en-us,office.12).gif HeightRule Returns or sets a WdRowHeightRule constant that represents the rule for determining the height of the specified cells or rows. Read/write.
Bb257475.properties(en-us,office.12).gif ID Returns or sets the identifying label for the specified object when the current document is saved as a Web page. Read/write String.
Bb257475.properties(en-us,office.12).gif LeftPadding Returns or sets the amount of space (in points) to add to the left of the contents of a single cell or all the cells in a table. Read/write Single.
Bb257475.properties(en-us,office.12).gif NestingLevel Returns the nesting level of the specified cell. Read-only Long.
Bb257475.properties(en-us,office.12).gif Next Returns a Cell object that represents the next table cell in the Cells collection. Read-only.
Bb257475.properties(en-us,office.12).gif Parent Returns an Object that represents the parent object of the specified Cell object.
Bb257475.properties(en-us,office.12).gif PreferredWidth Returns or sets the preferred width (in points or as a percentage of the window width) for the specified cell. Read/write Single.
Bb257475.properties(en-us,office.12).gif PreferredWidthType Returns or sets the preferred unit of measurement to use for the width of the specified cell. Read-only WdPreferredWidthType.
Bb257475.properties(en-us,office.12).gif Previous Returns a Cell object that represents the previous table cell in the Cells collection. Read-only.
Bb257475.properties(en-us,office.12).gif Range Returns a Range object that represents the portion of a document that's contained in the specified object.
Bb257475.properties(en-us,office.12).gif RightPadding Returns or sets the amount of space (in points) to add to the right of the contents of a single cell or all the cells in a table. Read/write Single.
Bb257475.properties(en-us,office.12).gif Row Returns a Row object that represents the row containing the specified cell.
Bb257475.properties(en-us,office.12).gif RowIndex Returns the number of the row that contains the specified cell. Read-only Long.
Bb257475.properties(en-us,office.12).gif Shading Returns a Shading object that refers to the shading formatting for the specified object.
Bb257475.properties(en-us,office.12).gif Tables Returns a Tables collection that represents all the nested tables inside the specified table cell. Read-only.
Bb257475.properties(en-us,office.12).gif TopPadding Returns or sets the amount of space (in points) to add above the contents of a single cell or all the cells in a table. Read/write Single.
Bb257475.properties(en-us,office.12).gif VerticalAlignment Returns or sets the vertical alignment of text in one or more cells of a table. Read/write WdCellVerticalAlignment.
Bb257475.properties(en-us,office.12).gif Width Returns or sets the width of a table cell, in points. Read/write Long.
Bb257475.properties(en-us,office.12).gif WordWrap True if Microsoft Word wraps text to multiple lines and lengthens the cell so that the cell width remains the same. Read/write Boolean.