public class CPDFEditorTextAttr extends CPDFAnnotAttrBase implements IAttributeCallback
The attribute was used when creating Content Editor text.
| Modifier and Type | Method and Description |
|---|---|
CPDFEditTextArea.PDFEditAlignType |
getAlignment()
Gets the alignment of content editor text, more:
CPDFFreetextAnnotation.Alignment |
int |
getAlpha()
Gets the opacity of content editor text , opacity range 0-255
|
CPDFTextAttribute |
getTextAttribute()
Gets the text attribute of content editor text, more:
CPDFTextAttribute |
void |
onload()
Loads the attribute of Freetext annotation, this method does not need to be called by user.
|
void |
onstore()
Saves the attribute of Freetext annotation, this method does not need to be called by user.
|
void |
setAlignment(CPDFEditTextArea.PDFEditAlignType alignment)
Sets the alignment of content editor text
|
void |
setAlpha(int alpha)
Sets the opacity of content editor text
|
void |
setTextAttribute(CPDFTextAttribute textAttribute)
Sets the text attribute of content editor text, more:
CPDFTextAttribute |
public int getAlpha()
public void setAlpha(int alpha)
alpha - Opacity, range 0-255public CPDFTextAttribute getTextAttribute()
CPDFTextAttributeCPDFTextAttributepublic void setTextAttribute(CPDFTextAttribute textAttribute)
CPDFTextAttributetextAttribute - Text attribute, more: CPDFTextAttributepublic CPDFEditTextArea.PDFEditAlignType getAlignment()
CPDFFreetextAnnotation.Alignmentpublic void setAlignment(CPDFEditTextArea.PDFEditAlignType alignment)
alignment - Alignment of content editor textpublic void onload()
onload in interface IAttributeCallbackpublic void onstore()
onstore in interface IAttributeCallback