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() |
double |
getHeight()
Desired height of the stamp on the page.
|
boolean |
getJustify()
Defines text justification.
|
boolean |
getScale()
Defines scaling of the text.
|
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.
|
double |
getWidth()
Desired width of the stamp on the page.
|
boolean |
getWordWrap()
Defines word wrap.
|
void |
put(Page page)
Adds textual stamp on the page.
|
void |
setHeight(double value) |
void |
setJustify(boolean value) |
void |
setScale(boolean value) |
void |
setTextAlignment(int value) |
void |
setValue(String value)
Sets string value which is used as stamp on the page.
|
void |
setWidth(double value) |
void |
setWordWrap(boolean value) |
getBackground, getBottomMargin, getHorizontalAlignment, getLeftMargin, getOpacity, getRightMargin, getRotate, getRotateAngle, getStampId, getTopMargin, getVerticalAlignment, getXIndent, getYIndent, getZoom, getZoomX, getZoomY, setBackground, setBottomMargin, setHorizontalAlignment, setLeftMargin, setOpacity, setRightMargin, setRotate, setRotateAngle, setStampId, setTopMargin, setVerticalAlignment, 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
formattedText
- FormattedText object which contains text of the stamp.public boolean getWordWrap()
Defines word wrap. If this property set to true and Width value specified, text will be broken in the several lines to fit into specified width. Default value: false.
public void setWordWrap(boolean value)
public boolean getJustify()
Defines text justification. If this property is set to true, both left and right edges of the text are aligned. Default value: false.
public void setJustify(boolean value)
public boolean getScale()
Defines scaling of the text. If this property is set to true and Width value specified, text will be scaled in order to fit to specified width.
public void setScale(boolean value)
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)
public void put(Page page)
Adds textual stamp on the page.
public double getWidth()
Desired width of the stamp on the page.
public double getHeight()
Desired height of the stamp on the page.
Copyright © 2014 Aspose. All Rights Reserved.