AddCustomAnnotationTypes Method

PDFTron SilverDox SDK

Collapse imageExpand ImageCopy imageCopyHover image
This method must be used to register custom annotation types before they can be saved or loaded using SaveAnnotations()()()() and LoadAnnotations(Stream, Predicate<(Of <<'(Annotation>)>>)). Built-in types do not need to be added.

Namespace: PDFTron.SilverDox.Documents.Annotations
Assembly: SilverDox (in SilverDox.dll) Version: 1.2.4413.29010

Syntax

C#
public void AddCustomAnnotationTypes(
	Type[] additionalAnnotationTypes
)
Visual Basic
Public Sub AddCustomAnnotationTypes ( _
	additionalAnnotationTypes As Type() _
)
Visual C++
public:
void AddCustomAnnotationTypes(
	array<Type^>^ additionalAnnotationTypes
)

Parameters

additionalAnnotationTypes
Type: array<System..::..Type>[]()[][]
An array of the types to be added.

Remarks

If a new annotation type is created (by deriving from Annotation), the type must be added to the annotation manager using this method in order to save or load the new type.

See Also