Category / Section
How do I insert hidden bookmarks to the document?
1 min read
Essential DocIO supports to insert hidden bookmarks to the document. A bookmark text that will be inserted preceded with an underscore character [ _ ] is considered as hidden bookmark.
C#
// Indicating hidden bookmark text start.
paragraph.AppendBookmarkStart ( "_HiddenText" );
// Writing bookmark text
paragraph.AppendText ( "Hidden Bookmark Text" );
// Indicating hidden bookmark text end.
paragraph.AppendBookmarkEnd ( "_HiddenText" );
VB
' Indicating hidden bookmark text start.
paragraph.AppendBookmarkStart ("_HiddenText")
' Writing bookmark text
paragraph.AppendText ("Hidden Bookmark Text")
' Indicating hidden bookmark text end.
paragraph.AppendBookmarkEnd ("_HiddenText")
Here is the sample.