DocumentBuilderMoveToCell Method
Moves the cursor to a table cell in the current section.

Namespace: Aspose.Words
Assembly: Aspose.Words (in Aspose.Words.dll) Version: 19.12
Syntax
public void MoveToCell(
	int tableIndex,
	int rowIndex,
	int columnIndex,
	int characterIndex
)

Parameters

tableIndex
Type: SystemInt32
The index of the table to move to.
rowIndex
Type: SystemInt32
The index of the row in the table.
columnIndex
Type: SystemInt32
The index of the column in the table.
characterIndex
Type: SystemInt32
The index of the character inside the cell. Currently can only specify 0 to move to the beginning of the cell or -1 to move to the end of the cell.
Remarks

The navigation is performed inside the current story of the current section.

For the index parameters, when index is greater than or equal to 0, it specifies an index from the beginning with 0 being the first element. When index is less than 0, it specified an index from the end with -1 being the last element.

Examples
Shows how to move a cursor position to the specified table cell.
Document doc = new Document(MyDir + "DocumentBuilder.doc");
DocumentBuilder builder = new DocumentBuilder(doc);

// All parameters are 0-index. Moves to the 2nd table, 3rd row, 5th cell.
builder.MoveToCell(1, 2, 4, 0);
builder.Writeln("Hello World!");
See Also