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(TextReplaceOptions.ReplaceAdjustment adjustment)
Initializes new instance of the
TextReplaceOptions object for the specified after
replace action. |
TextReplaceOptions(TextReplaceOptions.ReplaceAdjustment adjustment,
TextReplaceOptions.Scope scope)
Initializes new instance of the
TextReplaceOptions object for the specified after
replace action. |
TextReplaceOptions(TextReplaceOptions.Scope scope)
Initializes new instance of the
TextReplaceOptions object for the specified scope. |
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.
|
double |
getLeftAdjustment()
Sets or gets left position adjustment for replaced text when using TextReplaceOptions:
- ReplaceAdjustmentAction = IsFormFillingMode;
|
TextReplaceOptions.ReplaceAdjustment |
getReplaceAdjustmentAction()
Gets an action that will be done after replace of text fragment to more short.
|
TextReplaceOptions.Scope |
getReplaceScope()
Gets a scope where replace text operation is applied
|
double |
getRightAdjustment()
Sets or gets right position adjustment for replaced text when using TextReplaceOptions:
- ReplaceAdjustmentAction = WholeWordsHyphenation;
- ReplaceAdjustmentAction = IsFormFillingMode;
|
boolean |
isIgnoreParagraphs()
Gets or sets a value indicating whether to ignore distinct paragraphs when adjusting text on the page after text replacement.
|
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 |
setIgnoreParagraphs(boolean value)
Gets or sets a value indicating whether to ignore distinct paragraphs when adjusting text on the page after text replacement.
|
void |
setLeftAdjustment(double value)
Sets or gets left position adjustment for replaced text when using TextReplaceOptions:
- ReplaceAdjustmentAction = IsFormFillingMode;
|
void |
setReplaceAdjustmentAction(TextReplaceOptions.ReplaceAdjustment value)
Sets an action that will be done after replace of text fragment to more short.
|
void |
setReplaceScope(TextReplaceOptions.Scope value)
Sets a scope where replace text operation is applied
|
void |
setRightAdjustment(double value)
Sets or gets right position adjustment for replaced text when using TextReplaceOptions:
- ReplaceAdjustmentAction = WholeWordsHyphenation;
- ReplaceAdjustmentAction = IsFormFillingMode;
|
public TextReplaceOptions(TextReplaceOptions.Scope scope)
Initializes new instance of the TextReplaceOptions
object for the specified scope.
scope
- Scope object.TextReplaceOptions.Scope
public TextReplaceOptions(TextReplaceOptions.ReplaceAdjustment adjustment)
Initializes new instance of the TextReplaceOptions
object for the specified after
replace action.
adjustment
- ReplaceAdjustment object.TextReplaceOptions.ReplaceAdjustment
public TextReplaceOptions(TextReplaceOptions.ReplaceAdjustment adjustment, TextReplaceOptions.Scope 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 TextReplaceOptions.Scope getReplaceScope()
Gets a scope where replace text operation is applied
TextReplaceOptions.Scope
public void setReplaceScope(TextReplaceOptions.Scope value)
Sets a scope where replace text operation is applied
value
- int valueTextReplaceOptions.Scope
public TextReplaceOptions.ReplaceAdjustment getReplaceAdjustmentAction()
Gets an action that will be done after replace of text fragment to more short.
TextReplaceOptions.ReplaceAdjustment
public void setReplaceAdjustmentAction(TextReplaceOptions.ReplaceAdjustment 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 valuepublic final double getRightAdjustment()
Sets or gets right position adjustment for replaced text when using TextReplaceOptions: - ReplaceAdjustmentAction = WholeWordsHyphenation; - ReplaceAdjustmentAction = IsFormFillingMode;
public final void setRightAdjustment(double value)
Sets or gets right position adjustment for replaced text when using TextReplaceOptions: - ReplaceAdjustmentAction = WholeWordsHyphenation; - ReplaceAdjustmentAction = IsFormFillingMode;
value
- double valuepublic final double getLeftAdjustment()
Sets or gets left position adjustment for replaced text when using TextReplaceOptions: - ReplaceAdjustmentAction = IsFormFillingMode;
public final void setLeftAdjustment(double value)
Sets or gets left position adjustment for replaced text when using TextReplaceOptions: - ReplaceAdjustmentAction = IsFormFillingMode;
value
- double valuepublic final boolean isIgnoreParagraphs()
Gets or sets a value indicating whether to ignore distinct paragraphs when adjusting text on the page after text replacement.
public final void setIgnoreParagraphs(boolean value)
Gets or sets a value indicating whether to ignore distinct paragraphs when adjusting text on the page after text replacement.
value
- boolean valueCopyright © 2024 Aspose. All Rights Reserved.