WordFieldFluent
OfficeIMO.Word
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
- The instance.
- value bool = true
- 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
- The instance.
- configure System.Action<OfficeIMO.Word.WordParagraph>
- 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
- The instance.
- value string
- 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
- The instance.
- value bool = true
- The value; true when omitted.
Returns
TSelf The same instance.Examples
// C# initializer or property // C# fluent
wordField.UpdateField = value; wordField.UpdateField(value);