You can obtain where the builder's cursor is currently positioned at any time. The CurrentNode property returns the node that is currently selected in this builder. The node is a direct child of a paragraph. Any insert operations you perform using DocumentBuilder will insert before the CurrentNode. When the current paragraph is empty or the cursor is positioned just before the end of the paragraph, CurrentNode returns null.
Also, you can use the CurrentParagraph property, which gets the paragraph that is currently selected in this DocumentBuilder.
Example DocumentBuilderCursorPosition
Shows how to access the current node in a document builder.
[C#]
Document doc = new Document(MyDir + "DocumentBuilder.doc");
DocumentBuilder builder = new DocumentBuilder(doc);
Node curNode = builder.CurrentNode;
Paragraph curParagraph = builder.CurrentParagraph;
[Visual Basic]
Dim doc As Document = New Document(MyDir & "DocumentBuilder.doc")
Dim builder As DocumentBuilder = New DocumentBuilder(doc)
Dim curNode As Node = builder.CurrentNode
Dim curParagraph As Paragraph = builder.CurrentParagraph
[Java]
Document doc = new Document(getMyDir() + "DocumentBuilder.doc");
DocumentBuilder builder = new DocumentBuilder(doc);
Node curNode = builder.getCurrentNode();
Paragraph curParagraph = builder.getCurrentParagraph();