OfficeIMO

API Reference

Class

WordBookmark

Namespace OfficeIMO.Word
Assembly OfficeIMO.Word

Represents a bookmark within a Word document.

Inheritance

Constructors

public WordBookmark(WordDocument document, Paragraph paragraph, BookmarkStart bookmarkStart) #

Initializes a new instance of the WordBookmark class.

Parameters

document OfficeIMO.Word.WordDocument requiredposition: 0
Parent document.
paragraph DocumentFormat.OpenXml.Wordprocessing.Paragraph requiredposition: 1
Paragraph containing the bookmark.
bookmarkStart DocumentFormat.OpenXml.Wordprocessing.BookmarkStart requiredposition: 2
Underlying bookmark start element.

Methods

public static WordParagraph AddBookmark(WordParagraph paragraph, String bookmarkName) #
Returns: WordParagraph

Adds a bookmark to the specified paragraph.

Parameters

paragraph OfficeIMO.Word.WordParagraph requiredposition: 0
Paragraph to contain the bookmark.
bookmarkName System.String requiredposition: 1
Name of the bookmark.

Returns

The paragraph with the inserted bookmark.

public Void Remove() #
Returns: Void

Removes the bookmark from the document.

Properties

public String Name { get; set; } #

Gets or sets the bookmark name.

public Int32 Id { get; set; } #

Gets or sets the bookmark identifier.