







Abstract base class from which all annotations derive.
Namespace: PDFTron.SilverDox.Documents.Annotations
Assembly: SilverDox (in SilverDox.dll) Version: 1.2.4413.29010
Syntax
C# |
---|
public abstract class Annotation : INotifyPropertyChanged |
Visual Basic |
---|
Public MustInherit Class Annotation _ Implements INotifyPropertyChanged |
Visual C++ |
---|
public ref class Annotation abstract : INotifyPropertyChanged |
Remarks
To implement a new annotation type, the user must at a minimum implement the CreateAppearanceCanvas()()()() method,
as well as a default contstructor, a constructor which takes an AnnotationManager as a paramater (and calls
the equivalent base-class contructor), and a static method that takes as a parameter an AnnotationManager and returns the result of the non-default
construct. See below for a minimal example, and the sample project "Annotations" for a more complete example.
Examples

public class MinimalCustomAnnotation : Annotation { public override Canvas CreateAppearanceCanvas() { Canvas myCanvas = new Canvas(); // Create the annotation's appearance canvas here. // The canvas that this method returns will be displayed on screen. return myCanvas; } public static MinimalCustomAnnotation Create(AnnotationManager annotationManager) { return new MinimalAnnotation(annotationManager); } public MinimalCustomAnnotation(AnnotationManager annotationManager) : base(annotationManager) { } public MinimalCustomAnnotation() { } }
Inheritance Hierarchy
System..::..Object
PDFTron.SilverDox.Documents.Annotations..::..Annotation
PDFTron.SilverDox.Documents.Annotations..::..Markup
PDFTron.SilverDox.Documents.Annotations..::..Sticky
PDFTron.SilverDox.Documents.Annotations..::..Annotation
PDFTron.SilverDox.Documents.Annotations..::..Markup
PDFTron.SilverDox.Documents.Annotations..::..Sticky