Back to Devexpress

IPdfViewerAnnotationBuilder.AnnotationType Property

officefileapi-devexpress-dot-pdf-dot-ipdfviewerannotationbuilder.md

latest4.0 KB
Original Source

IPdfViewerAnnotationBuilder.AnnotationType Property

Gets the annotation’s type.

Namespace : DevExpress.Pdf

Assembly : DevExpress.Pdf.v25.2.Drawing.dll

NuGet Package : DevExpress.Pdf.Drawing

Declaration

csharp
PdfAnnotationType AnnotationType { get; }
vb
ReadOnly Property AnnotationType As PdfAnnotationType

Property Value

TypeDescription
PdfAnnotationType

An enumeration value that indicates the annotation type.

|

Available values:

Show 25 items

NameDescription
Link

Link annotation.

| | Widget |

Widget annotation.

| | Text |

Text annotation.

| | TextMarkup |

Text markup annotation.

| | Line |

Line annotation.

| | Polygon |

Polygon annotation.

| | PolyLine |

Polyline annotation.

| | Square |

Rectangle annotation.

| | Circle |

Circle annotation.

| | FileAttachment |

File attachment.

| | FreeText |

Free text annotation.

| | Ink |

Ink annotation (a freehand “scribble” composed of one or more disjoint paths).

| | Redaction |

Redaction annotation.

| | RubberStamp |

Stamp annotation.

| | Sound |

Audio attachment.

| | Caret |

Insertion caret.

| | Movie |

Video attachment.

| | Popup |

Pop-up annotation.

| | Screen |

Screen annotation (a page region on which to play media clips).

| | PrinterMark |

Printer’s mark annotation (a symbol added to a page to maintain consistent output during production).

| | TrapNet |

Trap network (a set of trapping instructions for the page) annotation.

| | Watermark |

Watermark annotation.

| | Annotation3D |

3D annotation.

| | RichMedia |

Rich Media annotation (SWF files and and enhanced rich media attachments).

| | Custom |

Custom annotation.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AnnotationType property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-pdf-viewer-create-text-markup-annotation-and-specify-its-properties/CS/MarkupAnnotations/MainWindow.xaml.cs#L25

csharp
{
    if (e.Builder.AnnotationType == PdfAnnotationType.Text || e.Builder.AnnotationType == PdfAnnotationType.TextMarkup)
    {

wpf-pdf-viewer-create-text-markup-annotation-and-specify-its-properties/VB/MarkupAnnotations/MainWindow.xaml.vb#L20

vb
Private Sub Viewer_AnnotationCreating(ByVal d As DependencyObject, ByVal e As PdfAnnotationCreatingEventArgs)
    If e.Builder.AnnotationType = PdfAnnotationType.Text OrElse e.Builder.AnnotationType = PdfAnnotationType.TextMarkup Then
        Dim annotationBuilder As IPdfViewerMarkupAnnotationBuilder = e.Builder.AsMarkupAnnotationBuilder()

See Also

IPdfViewerAnnotationBuilder Interface

IPdfViewerAnnotationBuilder Members

DevExpress.Pdf Namespace