Cells Cells Cells Interface


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

public interface class Cells : System::Collections::IEnumerable
public interface Cells : System.Collections.IEnumerable
Public Interface Cells
Implements IEnumerable


Use the Cells property to return the Cells collection.

Use the Add(Object) method to add a Cell object to the Cells collection. You can also use the InsertCells(Object) method of the Selection object to insert new cells.

Use Cell(row, column), where row is the row number and column is the column number, or Cells(index), where index is the index number, to return a Cell object.


Application Application Application

Returns an Application object that represents the creator of the specified object.

Borders Borders Borders

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

Count Count Count

Returns the number of items in the specified collection.

Creator Creator Creator

Returns a value that indicates the application in which the specified object was created.

Height Height Height

Returns or sets the height of the specified cells in a table.

HeightRule HeightRule HeightRule

Returns or sets the rule for determining the height of the specified cells.

Item[Int32] Item[Int32] Item[Int32]

Returns an individual object in a collection.

NestingLevel NestingLevel NestingLevel

Returns the nesting level of the specified cells.

Parent Parent Parent

Returns the parent object of the specified object.

PreferredWidth PreferredWidth PreferredWidth

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

PreferredWidthType PreferredWidthType PreferredWidthType

Returns or sets the preferred unit of measurement to use for the width of the specified cells.

Shading Shading Shading

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

VerticalAlignment VerticalAlignment VerticalAlignment

Returns or sets the vertical alignment of text in cells of a table.

Width Width Width

Returns or sets the width of the specified object, in points.


Add(Object) Add(Object) Add(Object)

Adds a cell to a table.

AutoFit() AutoFit() 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(Object) Delete(Object) Delete(Object)

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

DistributeHeight() DistributeHeight() DistributeHeight()

Adjusts the height of the specified cells so that they're equal.

DistributeWidth() DistributeWidth() DistributeWidth()

Adjusts the width of the specified cells so that they're equal.

GetEnumerator() GetEnumerator() GetEnumerator()
Merge() Merge() Merge()

Merges the specified table cells with one another.

SetHeight(Object, WdRowHeightRule) SetHeight(Object, WdRowHeightRule) SetHeight(Object, WdRowHeightRule)

Sets the height of table cells.

SetWidth(Single, WdRulerStyle) SetWidth(Single, WdRulerStyle) SetWidth(Single, WdRulerStyle)

Sets the width of cells in a table.

Split(Object, Object, Object) Split(Object, Object, Object) Split(Object, Object, Object)

Splits a range of table cells.

Applies to