FindReplaceOptions

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

NameTypeAccessDescription
ApplyFontFontReadText formatting applied to new content.
ApplyParagraphFormatParagraphFormatReadParagraph formatting applied to new content.
DirectionFindReplaceDirectionRead/WriteSelects direction for replace.
MatchCaseboolRead/WriteTrue indicates case-sensitive comparison, false indicates case-insensitive comparison.
FindWholeWordsOnlyboolRead/WriteTrue indicates the oldValue must be a standalone word.
ReplacingCallbackIReplacingCallbackRead/WriteThe user-defined method which is called before every replace occurrence.
UseLegacyOrderboolRead/WriteTrue indicates that a text search is performed sequentially from top to bottom considering the text boxes.
IgnoreDeletedboolRead/WriteGets or sets a boolean value indicating either to ignore text inside delete revisions.
IgnoreInsertedboolRead/WriteGets or sets a boolean value indicating either to ignore text inside insert revisions.
IgnoreFieldsboolRead/WriteGets or sets a boolean value indicating either to ignore text inside fields.
IgnoreFieldCodesboolRead/WriteGets or sets a boolean value indicating either to ignore text inside field codes.
IgnoreFootnotesboolRead/WriteGets or sets a boolean value indicating either to ignore footnotes.
UseSubstitutionsboolRead/WriteGets or sets a boolean value indicating whether to recognize and use substitutions within replacement patterns.
LegacyModeboolRead/WriteGets or sets a boolean value indicating that old find/replace algorithm is used.
IgnoreStructuredDocumentTagsboolRead/WriteGets or sets a boolean value indicating either to ignore content of StructuredDocumentTag.
SmartParagraphBreakReplacementboolRead/WriteGets or sets a boolean value indicating either it is allowed to replace paragraph break when there is no next sibling paragraph.
IgnoreShapesboolRead/WriteGets or sets a boolean value indicating either to ignore shapes within a text.
IgnoreOfficeMathboolRead/WriteGets or sets a boolean value indicating either to ignore text inside OfficeMath/>.

Methods

SignatureDescription
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.

See Also