API Reference
Class
WordBookmark
Represents a bookmark within a Word document.
Inheritance
- WordElement
- WordBookmark
Constructors
public WordBookmark(WordDocument document, Paragraph paragraph, BookmarkStart bookmarkStart) #Initializes a new instance of the WordBookmark class.
Parameters
- document OfficeIMO.Word.WordDocument
- Parent document.
- paragraph DocumentFormat.OpenXml.Wordprocessing.Paragraph
- Paragraph containing the bookmark.
- bookmarkStart DocumentFormat.OpenXml.Wordprocessing.BookmarkStart
- Underlying bookmark start element.
Methods
public static WordParagraph AddBookmark(WordParagraph paragraph, String bookmarkName) #Returns:
WordParagraphAdds a bookmark to the specified paragraph.
Parameters
- paragraph OfficeIMO.Word.WordParagraph
- Paragraph to contain the bookmark.
- bookmarkName System.String
- Name of the bookmark.
Returns
The paragraph with the inserted bookmark.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
Properties
public Int32 Id { get; set; } #Gets or sets the bookmark identifier.