public final class TextEditOptions extends TextOptions
Descubes options of text edit operations.
Modifier and Type | Class and Description |
---|---|
static class |
TextEditOptions.FontReplace
Font replacement behavior.
|
static class |
TextEditOptions.LanguageTransformation
Language transformation modes
|
static class |
TextEditOptions.NoCharacterAction
Action to perform if font does not contain required character
|
Constructor and Description |
---|
TextEditOptions(boolean allowLanguageTransformation)
Initializes new instance of the
TextEditOptions object for the specified language
transformation permission. |
TextEditOptions(int noCharacterBehavior)
Initializes new instance of the
TextEditOptions object for the specified no-character
behavior mode. |
Modifier and Type | Method and Description |
---|---|
boolean |
getAllowLanguageTransformation()
Gets value that permits usage of language transformation during adding or editing of text.
|
int |
getFontReplaceBehavior()
Gets mode that defines behavior for fonts replacement scenarios.
|
int |
getLanguageTransformationBehavior()
Gets mode that defines behavior for language transformation scenarios.
|
int |
getNoCharacterBehavior()
Gets mode that defines behavior in case fonts don't contain requested characters.
|
boolean |
getToAttemptGetUnderlineFromSource()
Gets or sets value that permits searching for text underlining on the page of source
document.
|
void |
setAllowLanguageTransformation(boolean value)
Sets value that permits usage of language transformation during adding or editing of text.
|
void |
setFontReplaceBehavior(int value)
Sets mode that defines behavior for fonts replacement scenarios.
|
void |
setLanguageTransformationBehavior(int value)
Sets mode that defines behavior for language transformation scenarios.
|
void |
setNoCharacterBehavior(int value)
Sets mode that defines behavior in case fonts don't contain requested characters.
|
void |
setToAttemptGetUnderlineFromSource(boolean value)
Gets or sets value that permits searching for text underlining on the page of source
document.
|
public TextEditOptions(int noCharacterBehavior)
Initializes new instance of the TextEditOptions
object for the specified no-character
behavior mode. Please init fontReplaceBehavior by using setFontReplaceBehavior(int)
noCharacterBehavior
- No-character behavior mode object.TextEditOptions.NoCharacterAction
public TextEditOptions(boolean allowLanguageTransformation)
Initializes new instance of the TextEditOptions
object for the specified language
transformation permission.
allowLanguageTransformation
- Allows language transformation if set to true.public int getNoCharacterBehavior()
Gets mode that defines behavior in case fonts don't contain requested characters.
TextEditOptions.NoCharacterAction
public void setNoCharacterBehavior(int value)
Sets mode that defines behavior in case fonts don't contain requested characters.
value
- NoCharacterAction valueTextEditOptions.NoCharacterAction
public int getFontReplaceBehavior()
TextEditOptions.FontReplace
public void setFontReplaceBehavior(int value)
value
- FontReplace valueTextEditOptions.FontReplace
public boolean getAllowLanguageTransformation()
Gets value that permits usage of language transformation during adding or editing of text. true - language transformation will be applied if necessary (default value). false - language transformation will NOT be applied.
public void setAllowLanguageTransformation(boolean value)
Sets value that permits usage of language transformation during adding or editing of text. true - language transformation will be applied if necessary (default value). false - language transformation will NOT be applied.
value
- boolean valuepublic int getLanguageTransformationBehavior()
Gets mode that defines behavior for language transformation scenarios.
TextEditOptions.LanguageTransformation
public void setLanguageTransformationBehavior(int value)
Sets mode that defines behavior for language transformation scenarios.
value
- LanguageTransformation valueTextEditOptions.LanguageTransformation
public boolean getToAttemptGetUnderlineFromSource()
Gets or sets value that permits searching for text underlining on the page of source document. false - text underlining that may present in source document will be ignored (default value). true - searching for text underlining will be performed in the source document. It may dramatically decrease performance of text editing operations. It also may effect on page graphical elements those look like underlining.
public void setToAttemptGetUnderlineFromSource(boolean value)
Gets or sets value that permits searching for text underlining on the page of source document. false - text underlining that may present in source document will be ignored (default value). true - searching for text underlining will be performed in the source document. It may dramatically decrease performance of text editing operations. It also may effect on page graphical elements those look like underlining.
value
- boolean valueCopyright © 2020 Aspose. All Rights Reserved.