Class AnnotationFactory
Inheritance
object
AnnotationFactory
Implements
Namespace: PSPDFKit.Sdk.Models.Annotation
Assembly: Sdk.dll
Syntax
public class AnnotationFactory : IAnnotationFactory
Methods
| Edit this page View SourceCreateAnnotation(JObject)
Declaration
public IAnnotation CreateAnnotation(JObject json)
Parameters
| Type | Name | Description |
|---|---|---|
| JObject | json |
Returns
| Type | Description |
|---|---|
| IAnnotation |
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. |