DocumentBuilderMoveToField Method
Moves the cursor to a field in the document.

Namespace: Aspose.Words
Assembly: Aspose.Words (in Aspose.Words.dll) Version: 19.10
Syntax
public void MoveToField(
	Field field,
	bool isAfter
)

Parameters

field
Type: Aspose.Words.FieldsField
The field to move the cursor to.
isAfter
Type: SystemBoolean
When true, moves the cursor to be after the field end. When false, moves the cursor to be before the field start.
Examples
Shows how to move document builder's cursor to a specific field.
[C#]

Document doc = new Document(MyDir + "Document.doc");
DocumentBuilder builder = new DocumentBuilder(doc);

Field field = builder.InsertField("MERGEFIELD field");

builder.MoveToField(field, true);
See Also