WordBookmarkScope
OfficeIMO.Word
Edits one WordBookmark: its fluent methods and keywords, each returning this scope.
Inheritance
- object
- WordBookmarkScope
Usage
Explore 8 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 4
- Method WordBookmarkScope.Id
- Method WordBookmarkScope.Name
- Method WordBookmarkScope.Paragraph
- Method WordBookmarkScope.Text
Accepted by parameters 4
- Method WordDocumentScope.Bookmark
- Method WordFooterScope.Bookmark
- Method WordHeaderScope.Bookmark
- Method WordParagraphScope.Bookmark
Methods
public WordBookmarkScope Id(int value) #Sets WordBookmark.Id: Gets or sets the bookmark identifier.
Parameters
- value int
- The value.
public WordBookmarkScope Name(string? value) #Sets WordBookmark.Name: Gets or sets the bookmark name.
Parameters
- value string?
- The value.
public WordBookmarkScope Paragraph(Action<WordParagraph> configure) #Configures WordBookmark.Paragraph in place: Gets the paragraph containing the bookmark.
Parameters
- configure System.Action<OfficeIMO.Word.WordParagraph>
- Configures the value.
public WordBookmarkScope Text(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.
Parameters
- value string
- The value.
Inherited Methods
Properties
public WordBookmark Model { get; } #The WordBookmark this scope edits, for plain C# inside a lambda.