Aspose::Words::LowCode::Replacer class

Replacer class

Provides methods intended to find and replace text in the document.

class Replacer : public Processor

Methods

MethodDescription
static Create(const System::SharedPtr<Aspose::Words::LowCode::ReplacerContext> &)Creates new instance of the replacer processor.
static Replace(const System::SharedPtr<System::IO::Stream> &, const System::SharedPtr<System::IO::Stream> &, Aspose::Words::SaveFormat, const System::SharedPtr<System::Text::RegularExpressions::Regex> &, const System::String &)Replaces all occurrences of a specified character string pattern with a replacement string in the input stream using a regular expression, with the specified save format and additional options.
static Replace(const System::SharedPtr<System::IO::Stream> &, const System::SharedPtr<System::IO::Stream> &, Aspose::Words::SaveFormat, const System::SharedPtr<System::Text::RegularExpressions::Regex> &, const System::String &, const System::SharedPtr<Aspose::Words::Replacing::FindReplaceOptions> &)Replaces all occurrences of a specified character string pattern with a replacement string in the input stream using a regular expression, with the specified save format and additional options.
static Replace(const System::SharedPtr<System::IO::Stream> &, const System::SharedPtr<System::IO::Stream> &, Aspose::Words::SaveFormat, const System::String &, const System::String &)Replaces all occurrences of a specified character string pattern with a replacement string in the input stream, with the specified save format and additional options.
static Replace(const System::SharedPtr<System::IO::Stream> &, const System::SharedPtr<System::IO::Stream> &, Aspose::Words::SaveFormat, const System::String &, const System::String &, const System::SharedPtr<Aspose::Words::Replacing::FindReplaceOptions> &)Replaces all occurrences of a specified character string pattern with a replacement string in the input stream, with the specified save format and additional options.
static Replace(const System::SharedPtr<System::IO::Stream> &, const System::SharedPtr<System::IO::Stream> &, const System::SharedPtr<Aspose::Words::Saving::SaveOptions> &, const System::SharedPtr<System::Text::RegularExpressions::Regex> &, const System::String &)Replaces all occurrences of a specified character string pattern with a replacement string in the input stream using a regular expression, with the specified save format and additional options.
static Replace(const System::SharedPtr<System::IO::Stream> &, const System::SharedPtr<System::IO::Stream> &, const System::SharedPtr<Aspose::Words::Saving::SaveOptions> &, const System::SharedPtr<System::Text::RegularExpressions::Regex> &, const System::String &, const System::SharedPtr<Aspose::Words::Replacing::FindReplaceOptions> &)Replaces all occurrences of a specified character string pattern with a replacement string in the input stream using a regular expression, with the specified save format and additional options.
static Replace(const System::SharedPtr<System::IO::Stream> &, const System::SharedPtr<System::IO::Stream> &, const System::SharedPtr<Aspose::Words::Saving::SaveOptions> &, const System::String &, const System::String &)Replaces all occurrences of a specified character string pattern with a replacement string in the input stream, with the specified save format and additional options.
static Replace(const System::SharedPtr<System::IO::Stream> &, const System::SharedPtr<System::IO::Stream> &, const System::SharedPtr<Aspose::Words::Saving::SaveOptions> &, const System::String &, const System::String &, const System::SharedPtr<Aspose::Words::Replacing::FindReplaceOptions> &)Replaces all occurrences of a specified character string pattern with a replacement string in the input stream, with the specified save format and additional options.
static Replace(const System::String &, const System::String &, Aspose::Words::SaveFormat, const System::SharedPtr<System::Text::RegularExpressions::Regex> &, const System::String &)Replaces all occurrences of a specified character string pattern with a replacement string in the input file using a regular expression, with the specified save format and additional options.
static Replace(const System::String &, const System::String &, Aspose::Words::SaveFormat, const System::SharedPtr<System::Text::RegularExpressions::Regex> &, const System::String &, const System::SharedPtr<Aspose::Words::Replacing::FindReplaceOptions> &)Replaces all occurrences of a specified character string pattern with a replacement string in the input file using a regular expression, with the specified save format and additional options.
static Replace(const System::String &, const System::String &, Aspose::Words::SaveFormat, const System::String &, const System::String &)Replaces all occurrences of a specified character string pattern with a replacement string in the input file, with the specified save format and additional options.
static Replace(const System::String &, const System::String &, Aspose::Words::SaveFormat, const System::String &, const System::String &, const System::SharedPtr<Aspose::Words::Replacing::FindReplaceOptions> &)Replaces all occurrences of a specified character string pattern with a replacement string in the input file, with the specified save format and additional options.
static Replace(const System::String &, const System::String &, const System::SharedPtr<Aspose::Words::Saving::SaveOptions> &, const System::SharedPtr<System::Text::RegularExpressions::Regex> &, const System::String &)Replaces all occurrences of a specified character string pattern with a replacement string in the input file using a regular expression, with the specified save format and additional options.
static Replace(const System::String &, const System::String &, const System::SharedPtr<Aspose::Words::Saving::SaveOptions> &, const System::SharedPtr<System::Text::RegularExpressions::Regex> &, const System::String &, const System::SharedPtr<Aspose::Words::Replacing::FindReplaceOptions> &)Replaces all occurrences of a specified character string pattern with a replacement string in the input file using a regular expression, with the specified save format and additional options.
static Replace(const System::String &, const System::String &, const System::SharedPtr<Aspose::Words::Saving::SaveOptions> &, const System::String &, const System::String &)Replaces all occurrences of a specified character string pattern with a replacement string in the input file, with the specified save format and additional options.
static Replace(const System::String &, const System::String &, const System::SharedPtr<Aspose::Words::Saving::SaveOptions> &, const System::String &, const System::String &, const System::SharedPtr<Aspose::Words::Replacing::FindReplaceOptions> &)Replaces all occurrences of a specified character string pattern with a replacement string in the input file, with the specified save format and additional options.
static Replace(const System::String &, const System::String &, const System::SharedPtr<System::Text::RegularExpressions::Regex> &, const System::String &)Replaces all occurrences of a specified character string pattern with a replacement string in the input file using a regular expression.
static Replace(const System::String &, const System::String &, const System::String &, const System::String &)Replaces all occurrences of a specified character string pattern with a replacement string in the input file.
static ReplaceToImages(const System::SharedPtr<System::IO::Stream> &, const System::SharedPtr<Aspose::Words::Saving::ImageSaveOptions> &, const System::SharedPtr<System::Text::RegularExpressions::Regex> &, const System::String &)Replaces all occurrences of a specified regular expression pattern with a replacement string in the input file. Renders output to images.
static ReplaceToImages(const System::SharedPtr<System::IO::Stream> &, const System::SharedPtr<Aspose::Words::Saving::ImageSaveOptions> &, const System::SharedPtr<System::Text::RegularExpressions::Regex> &, const System::String &, const System::SharedPtr<Aspose::Words::Replacing::FindReplaceOptions> &)Replaces all occurrences of a specified regular expression pattern with a replacement string in the input file. Renders output to images.
static ReplaceToImages(const System::SharedPtr<System::IO::Stream> &, const System::SharedPtr<Aspose::Words::Saving::ImageSaveOptions> &, const System::String &, const System::String &)Replaces all occurrences of a specified character string pattern with a replacement string in the input file. Renders output to images.
static ReplaceToImages(const System::SharedPtr<System::IO::Stream> &, const System::SharedPtr<Aspose::Words::Saving::ImageSaveOptions> &, const System::String &, const System::String &, const System::SharedPtr<Aspose::Words::Replacing::FindReplaceOptions> &)Replaces all occurrences of a specified character string pattern with a replacement string in the input file. Renders output to images.
static ReplaceToImages(const System::String &, const System::SharedPtr<Aspose::Words::Saving::ImageSaveOptions> &, const System::SharedPtr<System::Text::RegularExpressions::Regex> &, const System::String &)Replaces all occurrences of a specified regular expression pattern with a replacement string in the input file. Renders output to images.
static ReplaceToImages(const System::String &, const System::SharedPtr<Aspose::Words::Saving::ImageSaveOptions> &, const System::SharedPtr<System::Text::RegularExpressions::Regex> &, const System::String &, const System::SharedPtr<Aspose::Words::Replacing::FindReplaceOptions> &)Replaces all occurrences of a specified regular expression pattern with a replacement string in the input file. Renders output to images.
static ReplaceToImages(const System::String &, const System::SharedPtr<Aspose::Words::Saving::ImageSaveOptions> &, const System::String &, const System::String &)Replaces all occurrences of a specified character string pattern with a replacement string in the input file. Renders output to images.
static ReplaceToImages(const System::String &, const System::SharedPtr<Aspose::Words::Saving::ImageSaveOptions> &, const System::String &, const System::String &, const System::SharedPtr<Aspose::Words::Replacing::FindReplaceOptions> &)Replaces all occurrences of a specified character string pattern with a replacement string in the input file. Renders output to images.
Execute()Execute the processor action.
Execute(System::Threading::CancellationToken)Execute the processor action allowing canceling document processing task using specified cancellation token.
From(const System::SharedPtr<System::IO::Stream> &)Specifies input document for processing.
From(const System::SharedPtr<System::IO::Stream> &, const System::SharedPtr<Aspose::Words::Loading::LoadOptions> &)Specifies input document for processing.
From(const System::String &)Specifies input document for processing.
From(const System::String &, const System::SharedPtr<Aspose::Words::Loading::LoadOptions> &)Specifies input document for processing.
To(const System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<System::IO::Stream>>> &, Aspose::Words::SaveFormat)
To(const System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<System::IO::Stream>>> &, const System::SharedPtr<Aspose::Words::Saving::SaveOptions> &)
To(const System::SharedPtr<System::IO::Stream> &, Aspose::Words::SaveFormat)Specifies output stream for the processor.
To(const System::SharedPtr<System::IO::Stream> &, const System::SharedPtr<Aspose::Words::Saving::SaveOptions> &)Specifies output stream for the processor.
To(const System::String &)Specifies output file for the processor.
To(const System::String &, Aspose::Words::SaveFormat)Specifies output file for the processor.
To(const System::String &, System::SharedPtr<Aspose::Words::Saving::SaveOptions>)Specifies output file for the processor.

See Also