Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

WordFieldFluent

OfficeIMO.Word

Namespace
OfficeIMO.Word
Assembly
OfficeIMO.Word
Modifiers
static

The fluent methods of 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

Methods

public static TSelf LockField<TSelf>(TSelf wordField, bool value = true) #

Sets WordField.LockField: 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

// C# initializer or property    // C# fluent
wordField.LockField = value;     wordField.LockField(value);
public static TSelf Paragraph<TSelf>(TSelf wordField, Action<WordParagraph> configure) #

Configures WordField.Paragraph 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) #

Sets WordField.Text: 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

// C# initializer or property    // C# fluent
wordField.Text = value;          wordField.Text(value);
public static TSelf UpdateField<TSelf>(TSelf wordField, bool value = true) #

Sets WordField.UpdateField: 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

// C# initializer or property     // C# fluent
wordField.UpdateField = value;    wordField.UpdateField(value);