cete.dynamicpdf.pageelements.watermark
Watermark
- Namespace: ceTe.DynamicPDF.PageElements
- Assemblies: ceTe.DynamicPDF.40.dll
Base class from which TextWatermark and ImageWatermark are derived.
public abstract class Watermark : TaggablePageElement, IAnnotation, ISerializable
Public MustInherit Class Watermark
Inherits TaggablePageElement
Implements IAnnotation, ISerializable
Inheritance: Object → PageElement → TaggablePageElement → Watermark
Implements: IAnnotation, ISerializable
Derived: ImageWatermark, TextWatermark
Licensing
This class is a DynamicPDF Generator Professional Edition feature. One of the following licenses is required for non-evaluation usage:
- DynamicPDF Generator for .NET Professional Edition
- DynamicPDF Generator for .NET Enterprise Edition
- DynamicPDF Merger for .NET Professional Edition
- DynamicPDF Merger for .NET Enterprise Edition
- DynamicPDF ReportWriter for .NET Professional Edition
- DynamicPDF ReportWriter for .NET Enterprise Edition
- DynamicPDF Core Suite for .NET Professional Edition
- DynamicPDF Core Suite for .NET Enterprise Edition
Properties
AlternateName
Gets or sets the Name of the WaterMark.
public string AlternateName { get; set; }
Public Property AlternateName As String
Property Value
Angle
Gets or sets the heights of the angle of the WaterMark.
public float Angle { get; set; }
Public Property Angle As Single
Property Value
ID
Gets or sets the ID of the page element. (Inherited from PageElement)
public string ID { get; set; }
Public Property ID As String
Property Value
Name
Gets or sets the Name of the WaterMark.
public string Name { get; set; }
Public Property Name As String
Property Value
Opacity
Gets or sets the opacity of the WaterMark.
public float Opacity { get; set; }
Public Property Opacity As Single
Property Value
Position
Gets or sets the Position of the WaterMark.
public WatermarkPosition Position { get; set; }
Public Property Position As WatermarkPosition
Property Value
Tag
Gets or sets the tag of the taggable element. (Inherited from TaggablePageElement)
public Tag Tag { get; set; }
Public Property Tag As Tag
Property Value
Licensing
This property is a DynamicPDF Generator Enterprise Edition feature. One of the following licenses is required for non-evaluation usage:
- DynamicPDF Generator for .NET Enterprise Edition
- DynamicPDF Merger for .NET Enterprise Edition
- DynamicPDF ReportWriter for .NET Enterprise Edition
- DynamicPDF Core Suite for .NET Enterprise Edition
TagOrder
Gets or sets the tag order of the taggable element. (Inherited from TaggablePageElement)
public int TagOrder { get; set; }
Public Property TagOrder As Int32
Property Value
XOffset
Gets or sets the Horizontal Distance of the WaterMark.
public float XOffset { get; set; }
Public Property XOffset As Single
Property Value
YOffset
Gets or sets the Vertical Distance of the WaterMark.
public float YOffset { get; set; }
Public Property YOffset As Single
Property Value
Methods
Draw(PageWriter)
Draws the watermark to the given PageWriter object.
public void Draw(PageWriter writer)
Sub Draw(writer As PageWriter)
Parameters
- writer: PageWriter
PageWriter object to receive the watermark's output.
DrawAnnotation(DocumentWriter)
Draws the textWatermark to the given DocumentWriter object.
public void DrawAnnotation(DocumentWriter writer)
Sub DrawAnnotation(writer As DocumentWriter)
Parameters
- writer: DocumentWriter
DocumentWriter object to receive the textWatermark's output.
Equals(Object)
Determines whether the specified Object is equal to the current Object . (Inherited from Object)
public bool Equals(Object obj)
Function Equals(obj As Object) As Boolean
Parameters
- obj: Object
The Object to compare with the current Object .
Returns
true if the specified Object is equal to the current Object ; otherwise, false.
GetHashCode()
Serves as a hash function for a particular type. (Inherited from Object)
public int GetHashCode()
Function GetHashCode() As Integer
Returns
A hash code for the current Object .
GetType()
Gets the Type of the current instance. (Inherited from Object)
public Type GetType()
Function GetType() As Type
Returns
The Type instance that represents the exact runtime type of the current instance.
ToString()
Returns a String that represents the current Object . (Inherited from Object)
public string ToString()
Function ToString() As String
Returns
A String that represents the current Object .