# WordFieldFluent

The fluent methods of WordField, 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 [WordField](/api/word/officeimo-word-wordfield/), 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
- WordFieldFluent

Filter members 

Show inherited

## Methods

`public static TSelf LockField<TSelf>(TSelf wordField, bool value = true)` [#](#method-lockfield-boolean)

Sets [WordField.LockField](/api/word/officeimo-word-wordfield/): Gets or sets a value indicating whether the field is locked.

Type Parameters

**TSelf**

Parameters

**wordField 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
wordField.LockField = value;     wordField.LockField(value);
```

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

Configures [WordField.Paragraph](/api/word/officeimo-word-wordfield/) in place: Gets the containing paragraph handle for continuing paragraph authoring.

Type Parameters

**TSelf**

Parameters

**wordField 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 wordField, string value)` [#](#method-text-string)

Sets [WordField.Text](/api/word/officeimo-word-wordfield/): Gets or sets the display text of the field.

Type Parameters

**TSelf**

Parameters

**wordField TSelf required**

The instance.

**value string required**

The value.

Returns

`TSelf` The same instance.

Examples

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

`public static TSelf UpdateField<TSelf>(TSelf wordField, bool value = true)` [#](#method-updatefield-boolean)

Sets [WordField.UpdateField](/api/word/officeimo-word-wordfield/): Gets or sets a value indicating whether the field is marked dirty.

Type Parameters

**TSelf**

Parameters

**wordField 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
wordField.UpdateField = value;    wordField.UpdateField(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:CD707FD21583A1162E459031CA0E749D38C4119BB60D77145256BC8F4CE87E1F -->
