# WordBookmarkScope

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

Class 

`OfficeIMO.Word`

**Namespace**

`OfficeIMO.Word`

**Assembly**

`OfficeIMO.Word`

**Modifiers**

sealed

Edits one [WordBookmark](/api/word/officeimo-word-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.

### Returned or exposed by 4

- Method [WordBookmarkScope.Id](/api/word/officeimo-word-wordbookmarkscope/#method-id-int32)
- Method [WordBookmarkScope.Name](/api/word/officeimo-word-wordbookmarkscope/#method-name-string)
- Method [WordBookmarkScope.Paragraph](/api/word/officeimo-word-wordbookmarkscope/#method-paragraph-action-officeimo-word-wordparagraph)
- Method [WordBookmarkScope.Text](/api/word/officeimo-word-wordbookmarkscope/#method-text-string)

### Accepted by parameters 4

- Method [WordDocumentScope.Bookmark](/api/word/officeimo-word-worddocumentscope/#method-bookmark-string-action-officeimo-word-wordbookmarkscope) parameter `configure`
- Method [WordFooterScope.Bookmark](/api/word/officeimo-word-wordfooterscope/#method-bookmark-string-action-officeimo-word-wordbookmarkscope) parameter `configure`
- Method [WordHeaderScope.Bookmark](/api/word/officeimo-word-wordheaderscope/#method-bookmark-string-action-officeimo-word-wordbookmarkscope) parameter `configure`
- Method [WordParagraphScope.Bookmark](/api/word/officeimo-word-wordparagraphscope/#method-bookmark-string-action-officeimo-word-wordbookmarkscope) parameter `configure`

Filter members 

Show inherited

## Methods

`public WordBookmarkScope Id(int value)` [#](#method-id-int32)

Sets [WordBookmark.Id](/api/word/officeimo-word-wordbookmark/): Gets or sets the bookmark identifier.

Parameters

**value int required**

The value.

Returns

`WordBookmarkScope` The same scope.

`public WordBookmarkScope Name(string? value)` [#](#method-name-string)

Sets [WordBookmark.Name](/api/word/officeimo-word-wordbookmark/): Gets or sets the bookmark name.

Parameters

**value string? required**

The value.

Returns

`WordBookmarkScope` The same scope.

`public WordBookmarkScope Paragraph(Action<WordParagraph> configure)` [#](#method-paragraph-action-officeimo-word-wordparagraph)

Configures [WordBookmark.Paragraph](/api/word/officeimo-word-wordbookmark/) 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)` [#](#method-text-string)

Sets [WordBookmark.Text](/api/word/officeimo-word-wordbookmark/): 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.

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public WordBookmark Model { get; }` [#](#property-model)

The [WordBookmark](/api/word/officeimo-word-wordbookmark/) this scope edits, for plain C# inside a lambda.

<!-- PowerForge markdown artifact sha256:8268BE5B3DF5A9E14C4D70E593C806B5B6B00DCE1C0C082BBD5801DFB70E0C16 -->
