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.0.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 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 methodGetRotation
Gets rotation angle of annotaton appearance.
Public methodGetTextAttribute
Gets annotation text attribute, more:CTextAttribute
Public methodGetTransparency
Gets annotation opacity.
Public methodIsMersured
Public methodIsValid
Whether the object is valid.
Public methodReleaseAnnot
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 methodSetModifyDate
Sets the modification date of annotation.
Public methodSetRect
Sets rectangle on the page.
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