Creating paragraphs and Inserting bookmarks


#1

When creating a paragraph using aspose word, how would you insert multiple bookmarks within that paragraph?

Example of paragraph and bookmarks:

This would be [an example] paragraph where we would need to [enter more] than one bookmark. The bookmarks being shown in this paragraph by the "[]" symbols. Any help would be much [appreciated] in clarifying if this is possible or not using [Aspose] word. Thank you in advance.



#2

If you are using DocumentBuilder to insert the paragraph, do this:
builder.Write(something);
builder.StartBookmark(name);
builder.Write(something);
builder.EndBookmark(name);
builder.Write(something);

builder.Writeln(); //end of paragraph