本文整理汇总了C#中DocumentBuilder.MoveToCell方法的典型用法代码示例。如果您正苦于以下问题:C# DocumentBuilder.MoveToCell方法的具体用法?C# DocumentBuilder.MoveToCell怎么用?C# DocumentBuilder.MoveToCell使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DocumentBuilder
的用法示例。
在下文中一共展示了DocumentBuilder.MoveToCell方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DocumentBuilderMoveToTableCell
public void DocumentBuilderMoveToTableCell()
{
//ExStart
//ExFor:DocumentBuilder.MoveToCell
//ExId:DocumentBuilderMoveToTableCell
//ExSummary:Shows how to move a cursor position to the specified table cell.
Aspose.Words.Document doc = new Aspose.Words.Document(ExDir + "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!");
//ExEnd
}
示例2: MoveToTableCell
public static void MoveToTableCell(string dataDir)
{
// ExStart:DocumentBuilderMoveToTableCell
Document doc = new Document(dataDir + "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!");
// ExEnd:DocumentBuilderMoveToTableCell
}