Specifies options for find/replace operations.
Shows how to toggle case sensitivity when performing a find-and-replace operation.
Shows how to toggle standalone word-only find-and-replace operations.
#include <Aspose.Words.Cpp/Replacing/FindReplaceOptions.h>
Public Member Functions | |
FindReplaceOptions () | |
FindReplaceOptions (FindReplaceDirection direction) | |
FindReplaceOptions (FindReplaceDirection direction, SharedPtr< IReplacingCallback > replacingCallback) | |
FindReplaceOptions (SharedPtr< IReplacingCallback > replacingCallback) | |
SharedPtr< Font > | get_ApplyFont () const |
Text formatting applied to new content. More... | |
SharedPtr< ParagraphFormat > | get_ApplyParagraphFormat () const |
Paragraph formatting applied to new content. More... | |
FindReplaceDirection | get_Direction () const |
Selects direction for replace. Default value is Forward. More... | |
bool | get_FindWholeWordsOnly () const |
True indicates the oldValue must be a standalone word. More... | |
bool | get_IgnoreDeleted () const |
Gets or sets a boolean value indicating either to ignore text inside delete revisions. The default value is false . More... | |
bool | get_IgnoreFields () const |
Gets or sets a boolean value indicating either to ignore text inside fields. The default value is false . More... | |
bool | get_IgnoreInserted () const |
Gets or sets a boolean value indicating either to ignore text inside insert revisions. The default value is false . More... | |
bool | get_LegacyMode () const |
Gets or sets a boolean value indicating that old find/replace algorithm is used. More... | |
bool | get_MatchCase () const |
True indicates case-sensitive comparison, false indicates case-insensitive comparison. More... | |
SharedPtr< IReplacingCallback > | get_ReplacingCallback () const |
The user-defined method which is called before every replace occurrence. More... | |
bool | get_SmartParagraphBreakReplacement () const |
Gets or sets a boolean value indicating either it is allowed to replace paragraph break when there is no next sibling paragraph. The default value is false . More... | |
bool | get_UseLegacyOrder () const |
True indicates that a text search is performed sequentially from top to bottom considering the text boxes. Default value is false. More... | |
bool | get_UseSubstitutions () const |
Gets or sets a boolean value indicating whether to recognize and use substitutions within replacement patterns. The default value is false . More... | |
virtual const TypeInfo & | GetType () const override |
virtual bool | Is (const TypeInfo &target) const override |
void | set_Direction (FindReplaceDirection value) |
Setter for get_Direction. More... | |
void | set_FindWholeWordsOnly (bool value) |
Setter for get_FindWholeWordsOnly. More... | |
void | set_IgnoreDeleted (bool value) |
Setter for get_IgnoreDeleted. More... | |
void | set_IgnoreFields (bool value) |
Setter for get_IgnoreFields. More... | |
void | set_IgnoreInserted (bool value) |
Setter for get_IgnoreInserted. More... | |
void | set_LegacyMode (bool value) |
Setter for get_LegacyMode. More... | |
void | set_MatchCase (bool value) |
Setter for get_MatchCase. More... | |
void | set_ReplacingCallback (SharedPtr< IReplacingCallback > value) |
Setter for get_ReplacingCallback. More... | |
void | set_SmartParagraphBreakReplacement (bool value) |
Setter for get_SmartParagraphBreakReplacement. More... | |
void | set_UseLegacyOrder (bool value) |
Setter for get_UseLegacyOrder. More... | |
void | set_UseSubstitutions (bool value) |
Setter for get_UseSubstitutions. More... | |
Static Public Member Functions | |
static const TypeInfo & | Type () |
Aspose::Words::Replacing::FindReplaceOptions::FindReplaceOptions | ( | ) |
Aspose::Words::Replacing::FindReplaceOptions::FindReplaceOptions | ( | Aspose::Words::Replacing::FindReplaceDirection | direction | ) |
Aspose::Words::Replacing::FindReplaceOptions::FindReplaceOptions | ( | System::SharedPtr< Aspose::Words::Replacing::IReplacingCallback > | replacingCallback | ) |
Aspose::Words::Replacing::FindReplaceOptions::FindReplaceOptions | ( | Aspose::Words::Replacing::FindReplaceDirection | direction, |
System::SharedPtr< Aspose::Words::Replacing::IReplacingCallback > | replacingCallback | ||
) |
System::SharedPtr<Aspose::Words::Font> Aspose::Words::Replacing::FindReplaceOptions::get_ApplyFont | ( | ) | const |
Text formatting applied to new content.
Shows how to apply a different font to new content via FindReplaceOptions.
System::SharedPtr<Aspose::Words::ParagraphFormat> Aspose::Words::Replacing::FindReplaceOptions::get_ApplyParagraphFormat | ( | ) | const |
Paragraph formatting applied to new content.
Shows how to add formatting to paragraphs in which a find-and-replace operation has found matches.
Aspose::Words::Replacing::FindReplaceDirection Aspose::Words::Replacing::FindReplaceOptions::get_Direction | ( | ) | const |
Selects direction for replace. Default value is Forward.
Shows how to determine which direction a find-and-replace operation traverses the document in.
bool Aspose::Words::Replacing::FindReplaceOptions::get_FindWholeWordsOnly | ( | ) | const |
True indicates the oldValue must be a standalone word.
Shows how to toggle standalone word-only find-and-replace operations.
bool Aspose::Words::Replacing::FindReplaceOptions::get_IgnoreDeleted | ( | ) | const |
Gets or sets a boolean value indicating either to ignore text inside delete revisions. The default value is false
.
Shows how to include or ignore text inside delete revisions during a find-and-replace operation.
bool Aspose::Words::Replacing::FindReplaceOptions::get_IgnoreFields | ( | ) | const |
Gets or sets a boolean value indicating either to ignore text inside fields. The default value is false
.
Shows how to ignore text inside fields.
bool Aspose::Words::Replacing::FindReplaceOptions::get_IgnoreInserted | ( | ) | const |
Gets or sets a boolean value indicating either to ignore text inside insert revisions. The default value is false
.
Shows how to include or ignore text inside insert revisions during a find-and-replace operation.
bool Aspose::Words::Replacing::FindReplaceOptions::get_LegacyMode | ( | ) | const |
Gets or sets a boolean value indicating that old find/replace algorithm is used.
Shows how to recognize and use substitutions within replacement patterns.
bool Aspose::Words::Replacing::FindReplaceOptions::get_MatchCase | ( | ) | const |
True indicates case-sensitive comparison, false indicates case-insensitive comparison.
Shows how to toggle case sensitivity when performing a find-and-replace operation.
System::SharedPtr<Aspose::Words::Replacing::IReplacingCallback> Aspose::Words::Replacing::FindReplaceOptions::get_ReplacingCallback | ( | ) | const |
The user-defined method which is called before every replace occurrence.
Shows how to replace all occurrences of a regular expression pattern with another string, while tracking all such replacements.
Shows how to apply a different font to new content via FindReplaceOptions.
bool Aspose::Words::Replacing::FindReplaceOptions::get_SmartParagraphBreakReplacement | ( | ) | const |
Gets or sets a boolean value indicating either it is allowed to replace paragraph break when there is no next sibling paragraph. The default value is false
.
Shows how to remove paragraph from a table cell with a nested table.
bool Aspose::Words::Replacing::FindReplaceOptions::get_UseLegacyOrder | ( | ) | const |
True indicates that a text search is performed sequentially from top to bottom considering the text boxes. Default value is false.
Shows how to change the searching order of nodes when performing a find-and-replace text operation.
bool Aspose::Words::Replacing::FindReplaceOptions::get_UseSubstitutions | ( | ) | const |
Gets or sets a boolean value indicating whether to recognize and use substitutions within replacement patterns. The default value is false
.
Shows how to recognize and use substitutions within replacement patterns.
Shows how to replace the text with substitutions.
|
overridevirtual |
Reimplemented from System::Object.
|
overridevirtual |
Reimplemented from System::Object.
void Aspose::Words::Replacing::FindReplaceOptions::set_Direction | ( | Aspose::Words::Replacing::FindReplaceDirection | value | ) |
void Aspose::Words::Replacing::FindReplaceOptions::set_FindWholeWordsOnly | ( | bool | value | ) |
void Aspose::Words::Replacing::FindReplaceOptions::set_IgnoreDeleted | ( | bool | value | ) |
void Aspose::Words::Replacing::FindReplaceOptions::set_IgnoreFields | ( | bool | value | ) |
void Aspose::Words::Replacing::FindReplaceOptions::set_IgnoreInserted | ( | bool | value | ) |
void Aspose::Words::Replacing::FindReplaceOptions::set_LegacyMode | ( | bool | value | ) |
void Aspose::Words::Replacing::FindReplaceOptions::set_MatchCase | ( | bool | value | ) |
void Aspose::Words::Replacing::FindReplaceOptions::set_ReplacingCallback | ( | System::SharedPtr< Aspose::Words::Replacing::IReplacingCallback > | value | ) |
void Aspose::Words::Replacing::FindReplaceOptions::set_SmartParagraphBreakReplacement | ( | bool | value | ) |
void Aspose::Words::Replacing::FindReplaceOptions::set_UseLegacyOrder | ( | bool | value | ) |
void Aspose::Words::Replacing::FindReplaceOptions::set_UseSubstitutions | ( | bool | value | ) |
|
static |