# WordBookmarkFluent

The fluent methods of WordBookmark, generated from its public properties: A property-named method sets a property and a singular-named method adds…

Class 

`OfficeIMO.Word`

**Namespace**

`OfficeIMO.Word`

**Assembly**

`OfficeIMO.Word`

**Modifiers**

static

The fluent methods of [WordBookmark](/api/word/officeimo-word-wordbookmark/), generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.

## Inheritance

- object
- WordBookmarkFluent

Filter members 

Show inherited

## Methods

`public static TSelf Id<TSelf>(TSelf wordBookmark, int value)` [#](#method-id-int32)

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

Type Parameters

**TSelf**

Parameters

**wordBookmark TSelf required**

The instance.

**value int required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
wordBookmark.Id = value;         wordBookmark.Id(value);
```

`public static TSelf Name<TSelf>(TSelf wordBookmark, string? value)` [#](#method-name-string)

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

Type Parameters

**TSelf**

Parameters

**wordBookmark TSelf required**

The instance.

**value string? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
wordBookmark.Name = value;       wordBookmark.Name(value);
```

`public static TSelf Paragraph<TSelf>(TSelf wordBookmark, 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.

Type Parameters

**TSelf**

Parameters

**wordBookmark TSelf required**

The instance.

**configure System.Action<OfficeIMO.Word.WordParagraph> required**

Configures the value.

Returns

`TSelf` The same instance.

`public static TSelf Text<TSelf>(TSelf wordBookmark, 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.

Type Parameters

**TSelf**

Parameters

**wordBookmark TSelf required**

The instance.

**value string required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
wordBookmark.Text = value;       wordBookmark.Text(value);
```

## 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?`

<!-- PowerForge markdown artifact sha256:E42E67BDC591B248B4A123BB8A117D49A206FCDF021E0F1A1564CFB0A9ABDCB0 -->
