Class AnnotationFactory

Inheritance
AnnotationFactory
Implements
Namespace: PSPDFKit.Sdk.Models.Annotation
Assembly: Sdk.dll
Syntax
public class AnnotationFactory : IAnnotationFactory

Methods

| Edit this page View Source

CreateAnnotation(JObject)

Declaration
public IAnnotation CreateAnnotation(JObject json)
Parameters
Type Name Description
JObject json
Returns
Type Description
IAnnotation
| Edit this page View Source

CreateAnnotation<TAnnotationType>()

Creates annotation.

Declaration
public TAnnotationType CreateAnnotation<TAnnotationType>() where TAnnotationType : class, IAnnotation
Returns
Type Description
TAnnotationType

Annotation object of requested type.

Type Parameters
Name Description
TAnnotationType

Type of annotation to be created.

Exceptions
Type Condition
PSPDFKitInvalidTypeException

Thrown when creation of unsupported annotation type is requested.

Implements

IAnnotationFactory