public class TextStamp extends Stamp
Reresents textual stamp.
Modifier and Type | Field and Description |
---|---|
static float |
DefaultFontSize |
Constructor and Description |
---|
TextStamp(FormattedText formattedText)
Initializes a new instance of the
TextStamp class with formattedText object
|
TextStamp(String value)
Initializes a new instance of the
TextStamp class. |
Modifier and Type | Method and Description |
---|---|
static Font |
getDefaultFont() |
int |
getTextAlignment()
Alignment of the text inside the stamp.
|
TextState |
getTextState()
Gets text properties of the stamp.
|
String |
getValue()
Gets string value which is used as stamp on the page.
|
void |
put(Page page)
Adds textual stamp on the page.
|
void |
setTextAlignment(int value) |
void |
setValue(String value)
Sets string value which is used as stamp on the page.
|
getBackground, getBottomMargin, getHeight, getHorizontalAlignment, getLeftMargin, getOpacity, getRightMargin, getRotate, getRotateAngle, getStampId, getTopMargin, getVerticalAlignment, getWidth, getXIndent, getYIndent, getZoom, getZoomX, getZoomY, setBackground, setBottomMargin, setHeight, setHorizontalAlignment, setLeftMargin, setOpacity, setRightMargin, setRotate, setRotateAngle, setStampId, setTopMargin, setVerticalAlignment, setWidth, setXIndent, setYIndent, setZoom, setZoomX, setZoomY
public static final float DefaultFontSize
public TextStamp(String value)
Initializes a new instance of the TextStamp
class.
value
- Stamp value.public TextStamp(FormattedText formattedText)
Initializes a new instance of the TextStamp
class with formattedText object
public static Font getDefaultFont()
public String getValue()
Gets string value which is used as stamp on the page.
public void setValue(String value)
Sets string value which is used as stamp on the page.
public TextState getTextState()
Gets text properties of the stamp. See TextState
for details.
public int getTextAlignment()
Alignment of the text inside the stamp.
public void setTextAlignment(int value)
Copyright © 2018 Aspose. All Rights Reserved.