public void DocumentBuilderMoveToDocumentStartEnd()
{
//ExStart
//ExId:DocumentBuilderMoveToDocumentStartEnd
//ExSummary:Shows how to move a cursor position to the beginning or end of a document.
Document doc = new Document(MyDir + "DocumentBuilder.doc");
DocumentBuilder builder = new DocumentBuilder(doc);
builder.MoveToDocumentEnd();
builder.Writeln("This is the end of the document.");
builder.MoveToDocumentStart();
builder.Writeln("This is the beginning of the document.");
//ExEnd
}