public sealed class TextWatermark : Watermark
Public NotInheritable Class TextWatermark
Inherits Watermark
TextWatermark | Initializes a new instance of the TextWatermark class. |
AnnotationMode |
Gets or sets a value indicating if the watermark should be added as an annotation to a document page.
Default is .
InBackground will not work with annotation mode. Viewing and printing permissions for the annotation can be controlled by ScreenVisible and PrintVisible. (Inherited from Watermark) |
DistanceIsPercentage |
Gets or sets a value indicating if to treat HorizontalDistance and VerticalDistance values as percentage.
Default is .
If true, HorizontalDistance is a percentage of the page width (e.g. 50 means 50% of the page width) and VerticalDistance is a percentage of the page height (e.g. 50 means 50% of the page height). If false, HorizontalDistance and VerticalDistance are measured in points. (Inherited from Watermark) |
Font | Gets or sets the font to use for the text watermark. Default is "Helvetica, 12pt". |
FontColor | Gets or sets the font color to use for the text watermark. |
Height |
Gets or sets the height of the watermark; in points
or in percentage if SizeIsPercentage is set to true (e.g. 50 means 50% of the page height).
Default is 0.
If also Width is specified, the resulting height may be smaller than the given one to maintain the aspect ratio. (Inherited from Watermark) |
HorizontalAlignment |
Gets or sets a value indicating how the watermark is horizontally aligned relative to a document page.
Default is Left.
(Inherited from Watermark) |
HorizontalDistance |
Gets or sets the horizontal distance from left, right or center of document page; in points
or in percentage if DistanceIsPercentage is set to true (e.g. 50 means 50% of the page width).
Default is 0.
(Inherited from Watermark) |
InBackground |
Gets or sets a value indicating if the watermark should be added as a background layer to a document page.
Default is .
InBackground will not work when AnnotationMode is . (Inherited from Watermark) |
Opacity |
Gets or sets the opacity of the watermark.
Default is 100.
Values are between 0 and 100. Value 0 is invisible, value 100 is fully visible. (Inherited from Watermark) |
PageRange |
Gets or sets the range of page numbers to add the watermark to.
Default is "all".
A string representation of number ranges (e.g. 1-5, 8, 11-13) or keywords (all, even, odd) can be directly assigned to this property. (Inherited from Watermark) |
PrintVisible |
Gets or sets a value indicating if the annotation watermark should be displayed when printed.
Default is .
Note that this property is effective only when AnnotationMode is . (Inherited from Watermark) |
Rotation |
Gets or sets the rotation angle in degrees of the watermark.
Default is 0.
(Inherited from Watermark) |
ScreenVisible |
Gets or sets a value indicating if the annotation watermark should be displayed on screen.
Default is .
Note that this property is effective only when AnnotationMode is . (Inherited from Watermark) |
SizeIsPercentage |
Gets or sets a value indicating if to treat Width and Height values as percentage.
Default is .
If true, Width is a percentage of the page width (e.g. 50 means 50% of the page width) and Height is a percentage of the page height (e.g. 50 means 50% of the page height). If false, Width and Height are measured in points. (Inherited from Watermark) |
Text | Gets or sets the text to use as the watermark. |
TextAlignment | Gets or sets a value indicating how the text is horizontally aligned relative to the watermark rectangle. Default is Left. |
UseFontSize | Gets or sets a value indicating whether to use the font size from Font property instead of Width and Height values. Default is . |
VerticalAlignment |
Gets or sets a value indicating how the watermark is vertically aligned relative to a document page.
Default is Top.
(Inherited from Watermark) |
VerticalDistance |
Gets or sets the vertical distance from top, bottom or center of document page; in points
or in percentage if DistanceIsPercentage is set to true (e.g. 50 means 50% of the page height).
Default is 0.
(Inherited from Watermark) |
Width |
Gets or sets the width of the watermark; in points
or in percentage if SizeIsPercentage is set to true (e.g. 50 means 50% of the page width).
Default is 0.
If also Height is specified, the resulting width may be smaller than the given one to maintain the aspect ratio. (Inherited from Watermark) |