TextStamp

TextStamp class

Reresents textual stamp.

The TextStamp type exposes the following members:

Constructors

NameDescription
TextStamp(value)Initializes a new instance of the TextStamp class
TextStamp(value, text_state)Initializes a new instance of the TextStamp class
TextStamp(formatted_text)Initializes a new instance of the TextStamp class

Properties

NameDescription
backgroundSets or gets a bool value that indicates the content is stamped as background.
If the value is true, the stamp content is layed at the bottom.
By defalt, the value is false, the stamp content is layed at the top.
opacityGets or sets a value to indicate the stamp opacity. The value is from 0.0 to 1.0.
By default the value is 1.0.
outline_opacityGets or sets a value to indicate the stamp outline opacity. The value is from 0.0 to 1.0.
By default the value is 1.0.
outline_widthGets or sets a value of the stamp outline width.
By default the value is 1.0.
rotateSets or gets the rotation of stamp content according Rotation values.
Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees).
To set arbitrary angle use RotateAngle property.
If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None.
x_indentHorizontal stamp coordinate, starting from the left.
y_indentVertical stamp coordinate, starting from the bottom.
horizontal_alignmentGets or sets Horizontal alignment of stamp on the page.
vertical_alignmentGets or sets vertical alignment of stamp on page.
left_marginGets or sets left margin of stamp.
right_marginGets or sets right margin of stamp.
bottom_marginGets or sets bottom margin of stamp.
top_marginGets or sets top margin of stamp.
zoom_xHorizontal zooming factor of the stamp. Allows to scale stamp horizontally.
widthDesired width of the stamp on the page.
heightDesired height of the stamp on the page.
zoom_yVertical zooming factor of the stamp. Allows to scale stamp vertically.
zoomZooming factor of the stamp. Allows to scale stamp.
Please note that pair of properties ZoomX and ZoomY allows to set zoom factor for every axe separately.
Setting of this property changes both ZoomX and ZoomY properties.
If ZoomX and ZoomY are different then Zoom property returns ZoomX value.
rotate_angleGets or sets rotate angle of stamp in degrees.
This property allows to set arbitrary rotate angle.
drawThis property determines how stamp is drawn on page. If Draw = true stamp is drawn as graphic operators and if draw = false then stamp is drawn as text.
treat_y_indent_as_base_lineDefines coordinate origin for placing text.
If TreatYIndentAsBaseLine = true (default when Draw = true) YIndent value will be treated as text base line.
If TreatYIndentAsBaseLine = false (default when Draw = false) YIndent value will be treated as bottom (descent line) of text.
word_wrapDefines 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.
justifyDefines text justification. If this property is set to true, both left and right edges of the text are aligned. Default value: false.
scaleDefines 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.
valueGets or sets string value which is used as stamp on the page.
text_stateGets text properties of the stamp. See text_state for details.
text_alignmentAlignment of the text inside the stamp.
max_row_widthMax row height for WordWrap option.

Methods

NameDescription
put(page)Adds textual stamp on the page.
set_stamp_id(value)Sets stamp Id.
get_stamp_id()Returns stamp ID.

See Also