Cells MembersĀ 

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

The following tables list the members exposed by the Cells type.

Public Properties

  Name Description
Application Returns an Application object that represents the creator of the specified object.
Borders Returns a Borders collection that represents all the borders for the specified object.
Count Returns the number of items in the specified collection.
Creator Returns a value that indicates the application in which the specified object was created.
Height Returns or sets the height of the specified cells in a table.
HeightRule Returns or sets the rule for determining the height of the specified cells.
Item Returns an individual object in a collection.
NestingLevel Returns the nesting level of the specified cells.
Parent Returns the parent object of the specified object.
PreferredWidth Returns or sets the preferred width (in points or as a percentage of the window width) for the specified cells.
PreferredWidthType Returns or sets the preferred unit of measurement to use for the width of the specified cells.
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 cells of a table.
Width Returns or sets the width of the specified object, in points.

Top

Public Methods

  Name Description
Add Adds a cell 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 cells in a table and optionally controls how the remaining cells are shifted.
DistributeHeight Adjusts the height of the specified cells so that they're equal.
DistributeWidth Adjusts the width of the specified cells so that they're equal.
GetEnumerator Returns an enumerator to support iterating through the collection.
Merge Merges the specified table cells with one another.
SetHeight Sets the height of table cells.
SetWidth Sets the width of cells in a table.
Split Splits a range of table cells.

Top

See Also

Reference

Cells Interface
Microsoft.Office.Interop.Word Namespace