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()
Initializes new instance of the
TextReplaceOptions object for the default adjustment and scope : ReplaceAdjustment.None and Scope.REPLACE_FIRST |
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.Scope
public 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.Scope
public TextReplaceOptions()
Initializes new instance of the TextReplaceOptions
object for the default adjustment and scope : ReplaceAdjustment.None and Scope.REPLACE_FIRST
public int getReplaceScope()
Gets a scope where replace text operation is applied
TextReplaceOptions.Scope
public void setReplaceScope(int value)
Sets a scope where replace text operation is applied
value
- int valueTextReplaceOptions.Scope
public int getReplaceAdjustmentAction()
Gets an action that will be done after replace of text fragment to more short.
TextReplaceOptions.ReplaceAdjustment
public void setReplaceAdjustmentAction(int value)
Sets an action that will be done after replace of text fragment to more short.
value
- ReplaceAdjustment elementTextReplaceOptions.ReplaceAdjustment
Copyright © 2017 Aspose. All Rights Reserved.