com.aspose.words
Class ReplaceEvaluatorArgs
java.lang.Object
com.aspose.words.ReplaceEvaluatorArgs
public class ReplaceEvaluatorArgs
- extends java.lang.Object
Provides data for a custom replace operation.
ReplaceEvaluatorRangereplace(java.lang.String, java.lang.String, boolean, boolean)
Property Getters/Setters Summary |
int | getGroupIndex() | |
void | setGroupIndex(int value) | |
|
Identifies, by index, a captured group in the Match that is to be replaced with the Replacement string.
|
java.lang.String | getGroupName() | |
void | setGroupName(java.lang.String value) | |
|
Identifies, by name, a captured group in the Match that is to be replaced with the Replacement string.
|
System.Text.RegularExpressions.Match | getMatch() | |
|
The Match resulting from a single regular expression match during a Replace.
|
Node | getMatchNode() | |
|
Gets the node that contains the beginning of the match.
|
int | getMatchOffset() | |
|
Gets the zero-based starting position of the match from the start of
the node that contains the beginning of the match.
|
java.lang.String | getReplacement() | |
void | setReplacement(java.lang.String value) | |
|
Gets or sets the replacement string.
|
Property Getters/Setters Detail |
getMatch | |
public System.Text.RegularExpressions.Match getMatch()
|
-
The Match resulting from a single regular expression match during a Replace.
Match.Index gets the zero-based starting position
of the match from the start of the find and replace range.
getMatchNode | |
public Node getMatchNode()
|
-
Gets the node that contains the beginning of the match.
getMatchOffset | |
public int getMatchOffset()
|
-
Gets the zero-based starting position of the match from the start of
the node that contains the beginning of the match.
getReplacement/setReplacement | |
public java.lang.String getReplacement()
public void setReplacement(java.lang.String value)
|
-
Gets or sets the replacement string.
getGroupName/setGroupName | |
public java.lang.String getGroupName()
public void setGroupName(java.lang.String value)
|
-
Identifies, by name, a captured group in the Match that is to be replaced with the Replacement string.
When group name is null, GroupIndex is used to identify the group.
Default is null.
getGroupIndex/setGroupIndex | |
public int getGroupIndex()
public void setGroupIndex(int value)
|
-
Identifies, by index, a captured group in the Match that is to be replaced with the Replacement string.
GroupIndex has effect only when GroupName is null.
Default is zero.
See Also:
Wiki - the home page for the Aspose.Words Product Documentation that includes Programmer's Guide, Knowledge Base and other articles.
Aspose.Words Support Forum - our preferred method of support.
Aspose.Words Team - contact Aspose.Words Team.