public final class TextReplaceOptions extends TextOptions
Represents text replace options
| Modifier and Type | Class and Description |
|---|---|
static class |
TextReplaceOptions.ReplaceAdjustment
Determines action that will be done after replace of text fragment to more short.
|
static class |
TextReplaceOptions.Scope
Scope where replace text operation is applied REPLACE_FIRST by default This obsolete option
was kept for compatibility.
|
| Constructor and Description |
|---|
TextReplaceOptions(int scope)
Initializes new instance of the
TextReplaceOptions object for the specified scope. |
TextReplaceOptions(int adjustment,
int scope)
Initializes new instance of the
TextReplaceOptions object for the specified after
replace action. |
| Modifier and Type | Method and Description |
|---|---|
int |
getReplaceAdjustmentAction()
Gets an action that will be done after replace of text fragment to more short.
|
int |
getReplaceScope()
Gets a scope where replace text operation is applied
|
void |
setReplaceAdjustmentAction(int value)
Sets an action that will be done after replace of text fragment to more short.
|
void |
setReplaceScope(int value)
Sets a scope where replace text operation is applied
|
public TextReplaceOptions(int scope)
Initializes new instance of the TextReplaceOptions object for the specified scope.
scope - Scope object.TextReplaceOptions.Scopepublic TextReplaceOptions(int adjustment,
int scope)
Initializes new instance of the TextReplaceOptions object for the specified after
replace action.
adjustment - ReplaceAdjustment object.scope - Scope object.TextReplaceOptions.ReplaceAdjustment,
TextReplaceOptions.Scopepublic int getReplaceScope()
Gets a scope where replace text operation is applied
TextReplaceOptions.Scopepublic void setReplaceScope(int value)
Sets a scope where replace text operation is applied
value - int valueTextReplaceOptions.Scopepublic int getReplaceAdjustmentAction()
Gets an action that will be done after replace of text fragment to more short.
TextReplaceOptions.ReplaceAdjustmentpublic void setReplaceAdjustmentAction(int value)
Sets an action that will be done after replace of text fragment to more short.
value - ReplaceAdjustment elementTextReplaceOptions.ReplaceAdjustmentCopyright © 2016 Aspose. All Rights Reserved.