Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

WordBookmark

OfficeIMO.Word

Namespace
OfficeIMO.Word
Assembly
OfficeIMO.Word
Source revision
551365f138da with working tree changes

Represents a bookmark within a Word document.

Inheritance

Usage

Explore 12 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Methods

public static WordBookmark AddBookmark(WordParagraph paragraph, string bookmarkName) #

Adds a bookmark to the specified paragraph.

Parameters

paragraph OfficeIMO.Word.WordParagraph required
Paragraph to contain the bookmark.
bookmarkName string required
Name of the bookmark.

Returns

WordBookmark The created bookmark.
public void Remove() #

Removes the bookmark from the document.

Properties

public WordParagraph Paragraph { get; } #

Gets the paragraph containing the bookmark.

public string? Name { get; set; } #

Gets or sets the bookmark name.

public int Id { get; set; } #

Gets or sets the bookmark identifier.