ApiExamples.ExDocumentBuilder.DocumentBuilderMoveToDocumentStartEnd C# (CSharp) Method

DocumentBuilderMoveToDocumentStartEnd() private method

private DocumentBuilderMoveToDocumentStartEnd ( ) : void
return void
        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
        }
ExDocumentBuilder