Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

WordBookmarkScope

OfficeIMO.Word

Namespace
OfficeIMO.Word
Assembly
OfficeIMO.Word
Modifiers
sealed

Edits one WordBookmark: its fluent methods and keywords, each returning this scope.

Inheritance

  • object
  • WordBookmarkScope

Usage

Explore 8 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.

Accepted by parameters 4

Methods

public WordBookmarkScope Id(int value) #

Sets WordBookmark.Id: Gets or sets the bookmark identifier.

Parameters

value int required
The value.

Returns

WordBookmarkScope The same scope.
public WordBookmarkScope Name(string? value) #

Sets WordBookmark.Name: Gets or sets the bookmark name.

Parameters

value string? required
The value.

Returns

WordBookmarkScope The same scope.
public WordBookmarkScope Paragraph(Action<WordParagraph> configure) #

Configures WordBookmark.Paragraph in place: Gets the paragraph containing the bookmark.

Parameters

configure System.Action<OfficeIMO.Word.WordParagraph> required
Configures the value.

Returns

WordBookmarkScope The same scope.
public WordBookmarkScope Text(string value) #

Sets WordBookmark.Text: Gets or sets the text the bookmark spans. Paragraph breaks are returned as \n. Setting the text replaces the bookmarked content and keeps the bookmark around the new text, so REF and cross-reference fields show it after their next update.

Parameters

value string required
The value.

Returns

WordBookmarkScope The same scope.

Properties

public WordBookmark Model { get; } #

The WordBookmark this scope edits, for plain C# inside a lambda.