Skip to main content

Annotation

Version: 8.0

cete.dynamicpdf.annotation

Annotation​

Represents an annotation resource.

public class Annotation : Resource
Public Class Annotation
Inherits Resource

Inheritance: Object → Resource → Annotation

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

Constructors​

Annotation(Single, Single, Single, Single, IAnnotation)​

Initializes a new instance of the Annotation class.

public Annotation(float left, float top, float right, float bottom, IAnnotation iAnnotation)
Public Sub New (left As Single, top As Single, right As Single, bottom As Single, iAnnotation As IAnnotation)

Parameters​

The left X coordinate of the annotation.

The top Y coordinate of the annotation.

The right X coordinate of the annotation.

The bottom Y coordinate of the annotation.

The iAnnotaion for the annotation.

Properties​

Bottom​

Gets or sets the bottom Y coordinate of the annotation.

public float Bottom { get; }
Public Property Bottom As Single

Property Value​

Single

Left​

Gets or sets the left X coordinate of the annotation.

public float Left { get; }
Public Property Left As Single

Property Value​

Single

RequiredPdfObjects​

Gets the number of PDF objects required by the annotation.

public int RequiredPdfObjects { get; }
Public Property RequiredPdfObjects As Int32

Property Value​

Int32

ResourceType​

Gets the type of resource.

public ResourceType ResourceType { get; }
Public Property ResourceType As ResourceType

Property Value​

ResourceType

Gets or sets the right X coordinate of the annotation.

public float Right { get; }
Public Property Right As Single

Property Value​

Single

Top​

Gets or sets the top Y coordinate of the annotation.

public float Top { get; }
Public Property Top As Single

Property Value​

Single

Uid​

Gets the unique ID of the resource. (Inherited from Resource)

public long Uid { get; }
Public Property Uid As Int64

Property Value​

Int64

Methods​

Draw(DocumentWriter)​

Draws the annotation to the given DocumentWriter object.

public void Draw(DocumentWriter writer)
Sub Draw(writer As DocumentWriter)

Parameters​

DocumentWriter object to receive the annotation'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​

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 .

See Also​

ceTe.DynamicPDF