Referring to the documentation on inserting-content-into-a-bookmark (https://help.syncfusion.com/file-formats/docio/working-with-bookmarks#inserting-content-into-a-bookmark)
I would like to know if there is an easy way to change the font of the inserted bookmark text.
The only way I found to do this is by:
var textBodyPart = bookmarkNavigator.GetBookmarkContent();
foreach (var childEntity in textBodyPart.BodyItems)
{
if (childEntity is WParagraph)
{
var paragraph = childEntity as WParagraph;
IWTextRange firsttext = paragraph.AppendText("InsertedText");
firsttext.CharacterFormat.FontName = "Tahoma";
}
}
bookmarkNavigator.ReplaceBookmarkContent(textBodyPart);