WordBookmarkFluent
OfficeIMO.Word
The fluent methods of 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
Methods
public static TSelf Id<TSelf>(TSelf wordBookmark, int value) #Sets WordBookmark.Id: Gets or sets the bookmark identifier.
Type Parameters
- TSelf
Parameters
- wordBookmark TSelf
- The instance.
- value int
- The value.
Returns
TSelf The same instance.Examples
// C# initializer or property // C# fluent
wordBookmark.Id = value; wordBookmark.Id(value);public static TSelf Name<TSelf>(TSelf wordBookmark, string? value) #Sets WordBookmark.Name: Gets or sets the bookmark name.
Type Parameters
- TSelf
Parameters
- wordBookmark TSelf
- The instance.
- value string?
- The value.
Returns
TSelf The same instance.Examples
// C# initializer or property // C# fluent
wordBookmark.Name = value; wordBookmark.Name(value);public static TSelf Paragraph<TSelf>(TSelf wordBookmark, Action<WordParagraph> configure) #Configures WordBookmark.Paragraph in place: Gets the paragraph containing the bookmark.
Type Parameters
- TSelf
Parameters
- wordBookmark TSelf
- The instance.
- configure System.Action<OfficeIMO.Word.WordParagraph>
- Configures the value.
Returns
TSelf The same instance.public static TSelf Text<TSelf>(TSelf wordBookmark, string value) #Sets WordBookmark.Text: 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
- The instance.
- value string
- The value.
Returns
TSelf The same instance.Examples
// C# initializer or property // C# fluent
wordBookmark.Text = value; wordBookmark.Text(value);