Aspose.Words.Examples.CSharp.Programming_Documents.Working_With_Document.DocumentBuilderMovingCursor.MoveToMergeField C# (CSharp) Method

MoveToMergeField() public static method

public static MoveToMergeField ( string dataDir ) : void
dataDir string
return void
        public static void MoveToMergeField(string dataDir)
        {
            // ExStart:DocumentBuilderMoveToMergeField
            Document doc = new Document(dataDir + "DocumentBuilder.doc");
            DocumentBuilder builder = new DocumentBuilder(doc);

            builder.MoveToMergeField("NiceMergeField");
            builder.Writeln("This is a very nice merge field.");
            // ExEnd:DocumentBuilderMoveToMergeField              
        }     
    }