DocumentBuilderMoveToCell Method |
Moves the cursor to a table cell in the current section.
Namespace: Aspose.WordsAssembly: Aspose.Words (in Aspose.Words.dll) Version: 19.12
Syntaxpublic void MoveToCell(
int tableIndex,
int rowIndex,
int columnIndex,
int characterIndex
)
Public Sub MoveToCell (
tableIndex As Integer,
rowIndex As Integer,
columnIndex As Integer,
characterIndex As Integer
)
public:
void MoveToCell(
int tableIndex,
int rowIndex,
int columnIndex,
int characterIndex
)
member MoveToCell :
tableIndex : int *
rowIndex : int *
columnIndex : int *
characterIndex : int -> unit
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.
RemarksThe 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.
ExamplesShows how to move a cursor position to the specified table cell.
Document doc = new Document(MyDir + "DocumentBuilder.doc");
DocumentBuilder builder = new DocumentBuilder(doc);
builder.MoveToCell(1, 2, 4, 0);
builder.Writeln("Hello World!");
See Also