public void InsertTextAndBookmark()
{
//ExStart
//ExFor:DocumentBuilder
//ExFor:DocumentBuilder.StartBookmark
//ExFor:DocumentBuilder.EndBookmark
//ExSummary:Adds some text into the document and encloses the text in a bookmark using DocumentBuilder.
DocumentBuilder builder = new DocumentBuilder();
builder.StartBookmark("MyBookmark");
builder.Writeln("Text inside a bookmark.");
builder.EndBookmark("MyBookmark");
//ExEnd
}