次の方法で共有


Cell Members (Word)

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

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.

Delete

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

Formula

Inserts an = (Formula) field that contains the specified formula into a table cell.

Merge

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

Select

Selects the specified object.

SetHeight

Sets the height of table cells.

SetWidth

Sets the width of columns or cells in a table.

Split

Splits a single table cell into multiple 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.

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.

Column

Returns a Column object that represents the table column containing the specified cell. Read-only.

ColumnIndex

Returns the number of the table column that contains the specified cell. Read-only Long.

Creator

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

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.

Height

Returns or sets the height of the specified table cell. .

HeightRule

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

ID

Returns or sets the identifying label for the specified object when the current document is saved as a Web page. Read/write String.

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.

NestingLevel

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

Next

Returns a Cell object that represents the next table cell in the Cells collection. Read-only.

Parent

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

PreferredWidth

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

PreferredWidthType

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

Previous

Returns a Cell object that represents the previous table cell in the Cells collection. Read-only.

Range

Returns a Range object that represents the portion of a document that's contained in the specified object.

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.

Row

Returns a Row object that represents the row containing the specified cell.

RowIndex

Returns the number of the row that contains the specified cell. Read-only Long.

Shading

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

Tables

Returns a Tables collection that represents all the nested tables inside the specified table cell. Read-only.

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.

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 a table cell, in points. Read/write Long.

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.