FindReplaceOptions
Overview
FindReplaceOptions is a class in Aspose.Words FOSS for .NET.
Specifies options for find/replace operations.
This class provides 4 methods for working with FindReplaceOptions objects in .NET programs.
Available methods include: FindReplaceOptions.
All public members are accessible to any .NET application after installing the Aspose.Words FOSS for .NET package.
Properties: ApplyFont, ApplyParagraphFormat, Direction, FindWholeWordsOnly, IgnoreDeleted, IgnoreFieldCodes, and 12 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
ApplyFont | Font | Read | Text formatting applied to new content. |
ApplyParagraphFormat | ParagraphFormat | Read | Paragraph formatting applied to new content. |
Direction | FindReplaceDirection | Read/Write | Selects direction for replace. |
MatchCase | bool | Read/Write | True indicates case-sensitive comparison, false indicates case-insensitive comparison. |
FindWholeWordsOnly | bool | Read/Write | True indicates the oldValue must be a standalone word. |
ReplacingCallback | IReplacingCallback | Read/Write | The user-defined method which is called before every replace occurrence. |
UseLegacyOrder | bool | Read/Write | True indicates that a text search is performed sequentially from top to bottom considering the text boxes. |
IgnoreDeleted | bool | Read/Write | Gets or sets a boolean value indicating either to ignore text inside delete revisions. |
IgnoreInserted | bool | Read/Write | Gets or sets a boolean value indicating either to ignore text inside insert revisions. |
IgnoreFields | bool | Read/Write | Gets or sets a boolean value indicating either to ignore text inside fields. |
IgnoreFieldCodes | bool | Read/Write | Gets or sets a boolean value indicating either to ignore text inside field codes. |
IgnoreFootnotes | bool | Read/Write | Gets or sets a boolean value indicating either to ignore footnotes. |
UseSubstitutions | bool | Read/Write | Gets or sets a boolean value indicating whether to recognize and use substitutions within replacement patterns. |
LegacyMode | bool | Read/Write | Gets or sets a boolean value indicating that old find/replace algorithm is used. |
IgnoreStructuredDocumentTags | bool | Read/Write | Gets or sets a boolean value indicating either to ignore content of StructuredDocumentTag. |
SmartParagraphBreakReplacement | bool | Read/Write | Gets or sets a boolean value indicating either it is allowed to replace paragraph break when there is no next sibling paragraph. |
IgnoreShapes | bool | Read/Write | Gets or sets a boolean value indicating either to ignore shapes within a text. |
IgnoreOfficeMath | bool | Read/Write | Gets or sets a boolean value indicating either to ignore text inside OfficeMath/>. |
Methods
| Signature | Description |
|---|---|
FindReplaceOptions() | Initializes a new instance of the FindReplaceOptions class with default settings. |
FindReplaceOptions(direction: FindReplaceDirection) | Initializes a new instance of the FindReplaceOptions class with the specified direction. |
FindReplaceOptions(replacingCallback: IReplacingCallback) | Initializes a new instance of the FindReplaceOptions class with the specified replacing callback. |
FindReplaceOptions(direction: FindReplaceDirection, replacingCallback: IReplacingCallback) | Initializes a new instance of the FindReplaceOptions class with the specified direction and replacing callback. |