public class FindReplaceOptions
extends java.lang.Object
To learn more, visit the Find and Replace documentation article.
| Constructor and Description |
|---|
FindReplaceOptions()
Initializes a new instance of this class.
|
FindReplaceOptions(int direction)
Initializes a new instance of this class.
|
FindReplaceOptions(int direction,
IReplacingCallback replacingCallback)
Initializes a new instance of this class.
|
FindReplaceOptions(IReplacingCallback replacingCallback)
Initializes a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
Font |
getApplyFont()
Text formatting applied to new content.
|
ParagraphFormat |
getApplyParagraphFormat()
Paragraph formatting applied to new content.
|
int |
getDirection()
Selects direction for replace.
|
boolean |
getFindWholeWordsOnly()
True indicates the oldValue must be a standalone word.
|
boolean |
getIgnoreDeleted()
Gets a boolean value indicating either to ignore text inside delete revisions.
|
boolean |
getIgnoreFieldCodes()
Gets a boolean value indicating either to ignore text inside field codes.
|
boolean |
getIgnoreFields()
Gets a boolean value indicating either to ignore text inside fields.
|
boolean |
getIgnoreFootnotes()
Gets a boolean value indicating either to ignore footnotes.
|
boolean |
getIgnoreInserted()
Gets a boolean value indicating either to ignore text inside insert revisions.
|
boolean |
getIgnoreStructuredDocumentTags()
Gets a boolean value indicating either to ignore content of
StructuredDocumentTag. |
boolean |
getLegacyMode()
Gets a boolean value indicating that old find/replace algorithm is used.
|
boolean |
getMatchCase()
True indicates case-sensitive comparison, false indicates case-insensitive comparison.
|
IReplacingCallback |
getReplacingCallback()
The user-defined method which is called before every replace occurrence.
|
boolean |
getSmartParagraphBreakReplacement()
Gets or sets a boolean value indicating either it is allowed to replace paragraph break when there is no next sibling paragraph.
|
boolean |
getUseLegacyOrder()
True indicates that a text search is performed sequentially from top to bottom considering the text boxes.
|
boolean |
getUseSubstitutions()
Gets a boolean value indicating whether to recognize and use substitutions within replacement patterns.
|
void |
setDirection(int value)
Selects direction for replace.
|
void |
setFindWholeWordsOnly(boolean value)
True indicates the oldValue must be a standalone word.
|
void |
setIgnoreDeleted(boolean value)
Sets a boolean value indicating either to ignore text inside delete revisions.
|
void |
setIgnoreFieldCodes(boolean value)
Sets a boolean value indicating either to ignore text inside field codes.
|
void |
setIgnoreFields(boolean value)
Sets a boolean value indicating either to ignore text inside fields.
|
void |
setIgnoreFootnotes(boolean value)
Sets a boolean value indicating either to ignore footnotes.
|
void |
setIgnoreInserted(boolean value)
Sets a boolean value indicating either to ignore text inside insert revisions.
|
void |
setIgnoreStructuredDocumentTags(boolean value)
Sets a boolean value indicating either to ignore content of
StructuredDocumentTag. |
void |
setLegacyMode(boolean value)
Sets a boolean value indicating that old find/replace algorithm is used.
|
void |
setMatchCase(boolean value)
True indicates case-sensitive comparison, false indicates case-insensitive comparison.
|
void |
setReplacingCallback(IReplacingCallback value)
The user-defined method which is called before every replace occurrence.
|
void |
setSmartParagraphBreakReplacement(boolean value)
Gets or sets a boolean value indicating either it is allowed to replace paragraph break when there is no next sibling paragraph.
|
void |
setUseLegacyOrder(boolean value)
True indicates that a text search is performed sequentially from top to bottom considering the text boxes.
|
void |
setUseSubstitutions(boolean value)
Sets a boolean value indicating whether to recognize and use substitutions within replacement patterns.
|
public FindReplaceOptions()
public FindReplaceOptions(int direction)
public FindReplaceOptions(IReplacingCallback replacingCallback)
public FindReplaceOptions(int direction,
IReplacingCallback replacingCallback)
public Font getApplyFont()
Font value.public ParagraphFormat getApplyParagraphFormat()
ParagraphFormat value.public int getDirection()
FindReplaceDirection.FORWARD.int value. The returned value is one of FindReplaceDirection constants.public void setDirection(int value)
FindReplaceDirection.FORWARD.value - The corresponding int value. The value must be one of FindReplaceDirection constants.public boolean getMatchCase()
boolean value.public void setMatchCase(boolean value)
value - The corresponding boolean value.public boolean getFindWholeWordsOnly()
boolean value.public void setFindWholeWordsOnly(boolean value)
value - The corresponding boolean value.public IReplacingCallback getReplacingCallback()
IReplacingCallback value.public void setReplacingCallback(IReplacingCallback value)
value - The corresponding IReplacingCallback value.public boolean getUseLegacyOrder()
boolean value.public void setUseLegacyOrder(boolean value)
value - The corresponding boolean value.public boolean getIgnoreDeleted()
false.public void setIgnoreDeleted(boolean value)
false.value - A boolean value indicating either to ignore text inside delete revisions.public boolean getIgnoreInserted()
false.public void setIgnoreInserted(boolean value)
false.value - A boolean value indicating either to ignore text inside insert revisions.public boolean getIgnoreFields()
false.
This option affects whole field (all nodes between NodeType.FIELD_START and NodeType.FIELD_END).
To ignore only field codes, please use corresponding option getIgnoreFieldCodes() / setIgnoreFieldCodes(boolean).
public void setIgnoreFields(boolean value)
false.
This option affects whole field (all nodes between NodeType.FIELD_START and NodeType.FIELD_END).
To ignore only field codes, please use corresponding option getIgnoreFieldCodes() / setIgnoreFieldCodes(boolean).
value - A boolean value indicating either to ignore text inside fields.public boolean getIgnoreFieldCodes()
false.
This option affects only field codes (it does not ignore nodes between NodeType.FIELD_SEPARATOR and NodeType.FIELD_END).
To ignore whole field, please use corresponding option getIgnoreFields() / setIgnoreFields(boolean).
public void setIgnoreFieldCodes(boolean value)
false.
This option affects only field codes (it does not ignore nodes between NodeType.FIELD_SEPARATOR and NodeType.FIELD_END).
To ignore whole field, please use corresponding option getIgnoreFields() / setIgnoreFields(boolean).
value - A boolean value indicating either to ignore text inside field codes.public boolean getIgnoreFootnotes()
false.public void setIgnoreFootnotes(boolean value)
false.value - A boolean value indicating either to ignore footnotes.public boolean getUseSubstitutions()
false.
For the details on substitution elements please refer to: https://docs.microsoft.com/en-us/dotnet/standard/base-types/substitutions-in-regular-expressions.public void setUseSubstitutions(boolean value)
false.
For the details on substitution elements please refer to: https://docs.microsoft.com/en-us/dotnet/standard/base-types/substitutions-in-regular-expressions.value - A boolean value indicating whether to recognize and use substitutions within replacement patterns.public boolean getLegacyMode()
public void setLegacyMode(boolean value)
value - A boolean value indicating that old find/replace algorithm is used.public boolean getIgnoreStructuredDocumentTags()
StructuredDocumentTag. The default value is false.
When this option is set to true, the content of StructuredDocumentTag will be treated as a simple text.
Otherwise, StructuredDocumentTag will be processed as standalone Story and replacing pattern will be searched separately for each StructuredDocumentTag, so that if pattern crosses a StructuredDocumentTag, then replacement will not be performed for such pattern.
StructuredDocumentTag.public void setIgnoreStructuredDocumentTags(boolean value)
StructuredDocumentTag. The default value is false.
When this option is set to true, the content of StructuredDocumentTag will be treated as a simple text.
Otherwise, StructuredDocumentTag will be processed as standalone Story and replacing pattern will be searched separately for each StructuredDocumentTag, so that if pattern crosses a StructuredDocumentTag, then replacement will not be performed for such pattern.
value - A boolean value indicating either to ignore content of StructuredDocumentTag.public boolean getSmartParagraphBreakReplacement()
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.
boolean value.public void setSmartParagraphBreakReplacement(boolean value)
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.
value - The corresponding boolean value.