Partager via


Cells Members (Word)

A collection of Cell objects in a table column, table row, selection, or range.

Methods

Name

Description

Add

Returns a Cell object that represents a cell added to a table.

AutoFit

Changes the width of a table column to accommodate the width of the text without changing the way text wraps in the cells.

Delete

Deletes a table cell or cells and optionally controls how the remaining cells are shifted.

DistributeHeight

Adjusts the height of the specified cells so that they are equal.

DistributeWidth

Adjusts the width of the specified cells so that they are equal.

Item

Returns an individual Cell object in a collection.

Merge

Merges the specified table cells with one another. The result is a single table cell.

SetHeight

Sets the height of table cells.

SetWidth

Sets the width of columns or cells in a table.

Split

Splits a range of table cells.

Properties

Name

Description

Application

Returns an Application object that represents the Microsoft Word application.

Borders

Returns a Borders collection that represents all the borders for the specified object.

Count

Returns the number of items in the Cells collection. Read-only Long.

Creator

Returns a 32-bit integer that indicates the application in which the specified object was created. Read-only Long.

Height

Returns or sets the height of the specified table cells. Read/write Single.

HeightRule

Returns or sets a WdRowHeightRule constant that represents the rule for determining the height of the specified cells. Read/write .

NestingLevel

Returns the nesting level of the specified cells. Read-only Long.

Parent

Returns an Object that represents the parent object of the specified Cells object.

PreferredWidth

Returns or sets the preferred width (in points or as a percentage of the window width) for the specified cells. Read/write Single.

PreferredWidthType

Returns or sets the preferred unit of measurement to use for the width of the specified cells. Read-only WdPreferredWidthType.

Shading

Returns a Shading object that refers to the shading formatting for the specified object.

VerticalAlignment

Returns or sets the vertical alignment of text in one or more cells of a table. Read/write WdCellVerticalAlignment.

Width

Returns or sets the width of the table cells, in points. Read/write Long.