TextWatermark class

TextWatermark class

Represents a text watermark.

Inheritance: TextWatermarkWatermark

The TextWatermark type exposes the following members:

Constructors

Constructor Description
init Initializes a new instance of the TextWatermark class with a specified text and a font.

Properties

Property Description
opacity Gets or sets the opacity of this Watermark.
y Gets or sets the y-coordinate of this Watermark.
x Gets or sets the x-coordinate of this Watermark.
vertical_alignment Gets or sets the vertical alignment of this Watermark.
horizontal_alignment Gets or sets the horizontal alignment of this Watermark.
rotate_angle Gets or sets the rotate angle of this Watermark in degrees.
is_background Gets or sets a value indicating whether the watermark should be placed at background.
margins Gets or sets the margin settings of this Watermark.
pages_setup Gets or sets the pages setup settings of this Watermark.
height Gets or sets the desired height of this Watermark.
width Gets or sets the desired width of this Watermark.
scale_factor Gets or sets a value that defines how watermark size depends on parent size.
sizing_type Gets or sets a value specifying a way watermark should be sized.
consider_parent_margins Gets or sets a value indicating whether the watermark size and coordinates are calculated
considering parent margins.
save_result_in_metadata Gets or sets a value indicating whether to save information about added watermarks in the document metadata.
tile_options Get or sets options to define repeated watermark
text Gets or sets the text to be used as watermark.
font Gets or sets the font of the text.
foreground_color Gets or sets the foreground color of the text.
background_color Gets or sets the background color of the text.
text_alignment Gets or sets the watermark text alignment.
padding Gets or sets the padding settings of this TextWatermark.
This property is applicable only to image files.

Remarks

Learn more: | | |

Example

Scale the text watermark depending on the parent size.

See Also