# WordAskFieldFluent

The fluent methods of WordAskField, 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 [WordAskField](/api/word/officeimo-word-wordaskfield/), 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
- WordAskFieldFluent

Filter members 

Show inherited

## Methods

`public static TSelf Bookmark<TSelf>(TSelf wordAskField, string? value)` [#](#method-bookmark-string)

Sets [WordAskField.Bookmark](/api/word/officeimo-word-wordaskfield/): Bookmark to assign the value to.

Type Parameters

**TSelf**

Parameters

**wordAskField TSelf required**

The instance.

**value string? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                    // C# fluent
new global::OfficeIMO.Word.WordAskField { Bookmark = value };    wordAskField.Bookmark(value);
```

`public static TSelf DefaultResponse<TSelf>(TSelf wordAskField, string? value)` [#](#method-defaultresponse-string)

Sets [WordAskField.DefaultResponse](/api/word/officeimo-word-wordaskfield/): Default response for the prompt. Added using the \d switch.

Type Parameters

**TSelf**

Parameters

**wordAskField TSelf required**

The instance.

**value string? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                           // C# fluent
new global::OfficeIMO.Word.WordAskField { DefaultResponse = value };    wordAskField.DefaultResponse(value);
```

`public static TSelf PromptOnce<TSelf>(TSelf wordAskField, bool value = true)` [#](#method-promptonce-boolean)

Sets [WordAskField.PromptOnce](/api/word/officeimo-word-wordaskfield/): Indicates whether the prompt should appear only once. Added using the \o switch.

Type Parameters

**TSelf**

Parameters

**wordAskField TSelf required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                      // C# fluent
new global::OfficeIMO.Word.WordAskField { PromptOnce = value };    wordAskField.PromptOnce(value);
```

`public static TSelf Prompt<TSelf>(TSelf wordAskField, string? value)` [#](#method-prompt-string)

Sets [WordAskField.Prompt](/api/word/officeimo-word-wordaskfield/): Prompt displayed to the user.

Type Parameters

**TSelf**

Parameters

**wordAskField TSelf required**

The instance.

**value string? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                  // C# fluent
new global::OfficeIMO.Word.WordAskField { Prompt = value };    wordAskField.Prompt(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:CA2CE83737DD7E7CD3BF5758C55D122D0B2476941BB3088F7BDE95C1E5410F29 -->
