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 |
---|---|
double |
getAdjustmentNewLineSpacing()
Gets or sets value of line spacing that used if replace adjustment is forced to create new
line of text.
|
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 |
setAdjustmentNewLineSpacing(double value)
Gets or sets value of line spacing that used if replace adjustment is forced to create new
line of text.
|
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
public double getAdjustmentNewLineSpacing()
Gets or sets value of line spacing that used if replace adjustment is forced to create new line of text. The value expected is multiplier of font size of the replaced text. Default is 1.2.
public void setAdjustmentNewLineSpacing(double value)
Gets or sets value of line spacing that used if replace adjustment is forced to create new line of text. The value expected is multiplier of font size of the replaced text. Default is 1.2.
value
- double value