Click or drag to resize

CPDFAnnotation Class

An annotation associates an object such as a note, sound, or movie with a location on a page of a PDF document, or provides a way to interact with the user by means of the mouse and keyboard.PDF includes a wide variety of standard annotation types. Class Annot is the base class for all kinds of PDF annotations.It offers the base functions to get/set annotation's common properties, to move an annotation or reset appearance stream of an annotation. For concrete annotation types, please refer to derived classes. To get the count of annotations or get/add/remove an annotation, please refer to class CPDFPage. This class object can also be used to construct objects of other classes in order to do some more operation in annotation or access specified information of annotation.
Inheritance Hierarchy
SystemObject
  ComPDFKit.PDFAnnotationCPDFAnnotation
    More...

Namespace:  ComPDFKit.PDFAnnotation
Assembly:  ComPDFKit.NET (in ComPDFKit.NET.dll) Version: 2.2.0.0 (2.2.0.0)
Syntax
C#
public class CPDFAnnotation

The CPDFAnnotation type exposes the following members.

Properties
  NameDescription
Public propertyPage
Returns the page that the annotation is associated with.
Public propertyRect
Gets the rectangle of the annotation on the page.
Public propertyType
Gets annotation type.
Top
Methods
  NameDescription
Public methodStatic memberAddCopyAnnotToPage
Add the copied comments to the PDF page
Public methodStatic memberCopyAnnot
Copies the annotation.
Public methodCreateReplyAnnotation
Creates a reply annotation.
Public methodCreateReplyStateAnnotation
Creates a reply state annotation.
Public methodGetAuthor
Gets the author of annotation.
Public methodGetBorderWidth
Gets border width of the annotation.
Public methodGetContent
Gets annotation content.
Public methodGetCreationDate
Gets the creation date of annotation.
Public methodGetFlags
Returns the flag of the annotation.
Public methodGetIsHidden
This is a convenience property that checks for `CPDFAnnotationFlagHidden` in `flags`.
Public methodGetIsLocked
This is a convenience property that checks for `CPDFAnnotationFlagLocked` in `flags`.
Public methodGetIsReadOnly
This is a convenience property that checks for `CPDFAnnotationFlagReadOnly` in `flags`.
Public methodGetModifyDate
Gets the modification date of annotation.
Public methodGetRect
Gets rectangle on the page.
Public methodGetReplies
Gets the replies of the annotation.
Public methodGetReplyTitle
Gets the reply title of the annotation.
Public methodGetRotation
Gets rotation angle of annotation appearance.
Public methodGetSourceRect
Gets the rectangle used to rotate the annotation.
Public methodGetState
Gets the state of the annotation.
Public methodGetTextAttribute
Gets annotation text attribute, more:CTextAttribute
Public methodGetTransparency
Gets annotation opacity.
Public methodIsMarkedStateAnnot
Whether the annotation is a marked state annotation.
Public methodIsMeasured
Whether the annotation is measured.
Public methodIsReplyAnnot
Whether the annotation is a reply annotation.
Public methodIsReviewStateAnnot
Whether the annotation is a review state annotation.
Public methodIsValid
Whether the object is valid.
Public methodReleaseAnnot
Releases resources of the object.
Public methodStatic memberReleaseCopyAnnot
Releases resources of the object.
Public methodRemoveAnnot
Removes annotation.
Public methodRenderAnnot(Int32, Int32, Byte, CPDFAppearanceType)
Renders contents of the annotation to image.
Public methodRenderAnnot(Int32, Int32, IntPtr, CPDFAppearanceType)
Renders contents of the annotation to image.
Public methodSetAuthor
Sets the author of annotation.
Public methodSetBorderWidth
Sets border width of the annotation.
Public methodSetContent
Sets annotation content.
Public methodSetCreationDate
Sets the creation date of annotation.
Public methodSetFlags
Sets the flag of the annotation.
Public methodSetIsHidden
This is a convenience property that checks for `CPDFAnnotationFlagHidden` in `flags`.
Public methodSetIsLocked
This is a convenience property that checks for `CPDFAnnotationFlagLocked` in `flags`.
Public methodSetIsReadOnly
This is a convenience property that checks for `CPDFAnnotationFlagReadOnly` in `flags`.
Public methodSetMarkedAnnotState
Sets the marked state of the annotation.
Public methodSetModifyDate
Sets the modification date of annotation.
Public methodSetRect
Sets rectangle on the page.
Public methodSetReplyAnnotation
Sets the reply annotation.
Public methodSetReplyTitle
Sets the reply title of the annotation.
Public methodSetReviewAnnotState
Sets the review state of the annotation.
Public methodSetSourceRect
Sets the rectangle used to rotate the annotation.
Public methodSetState
Sets the state of the annotation.
Public methodSetTextAttribute
Sets text attribute of annotation, more:CTextAttribute
Public methodSetTransparency
Public methodUpdateAp
Updates annotation appearance.
Public methodUpdateApWithBitmap
Upadates annotation appearance by Bitmap.
Public methodUpdateApWithImage
Top
See Also
Inheritance Hierarchy
SystemObject
  ComPDFKit.PDFAnnotationCPDFAnnotation
    ComPDFKit.PDFAnnotationCPDFCircleAnnotation
    ComPDFKit.PDFAnnotationCPDFFreeTextAnnotation
    ComPDFKit.PDFAnnotationCPDFInkAnnotation
    ComPDFKit.PDFAnnotationCPDFLineAnnotation
    ComPDFKit.PDFAnnotationCPDFLinkAnnotation
    ComPDFKit.PDFAnnotationCPDFMarkupAnnotation
    ComPDFKit.PDFAnnotationCPDFMovieAnnotation
    ComPDFKit.PDFAnnotationCPDFPolygonAnnotation
    ComPDFKit.PDFAnnotationCPDFPolylineAnnotation
    ComPDFKit.PDFAnnotationCPDFRedactAnnotation
    ComPDFKit.PDFAnnotationCPDFSoundAnnotation
    ComPDFKit.PDFAnnotationCPDFSquareAnnotation
    ComPDFKit.PDFAnnotationCPDFStampAnnotation
    ComPDFKit.PDFAnnotationCPDFTextAnnotation
    ComPDFKit.PDFAnnotation.FormCPDFWidget