ReplacingArgs

Overview

ReplacingArgs is a class in Aspose.Words FOSS for .NET.

Provides data for a custom replace operation.

Properties: GroupIndex, GroupName, Match, MatchEndNode, MatchNode, MatchOffset, and 1 more.

Properties

NameTypeAccessDescription
MatchMatchReadThe Match resulting from a single regular expression match during a Replace.
MatchNodeNodeReadGets the node that contains the beginning of the match.
MatchEndNodeNodeReadGets the node that contains the end of the match.
MatchOffsetintReadGets the zero-based starting position of the match from the start of the node that contains the beginning of the match.
ReplacementstringRead/WriteGets or sets the replacement string.
GroupNamestringRead/WriteIdentifies, by name, a captured group in the Match that is to be replaced with the Replacement string.
GroupIndexintRead/WriteIdentifies, by index, a captured group in the Match that is to be replaced with the Replacement string.

See Also