New to Telerik Document ProcessingStart a free 30-day trial

Page annotations API for adding links, text markups, stamps, and other interactive elements to a PDF page.

Definition

Namespace:Telerik.Windows.Documents.Fixed.Model.Collections

Assembly:Telerik.Windows.Documents.Fixed.dll

Syntax:

C#
public sealed class AnnotationCollection : DocumentElementCollection<Annotation, RadFixedPage>, IList<Annotation>, ICollection<Annotation>, IEnumerable<Annotation>, IEnumerable

Inheritance: objectDocumentElementCollectionBase<Annotation, RadFixedPage>DocumentElementCollection<Annotation, RadFixedPage>AnnotationCollection

Implements: ICollection<Annotation>IEnumerableIEnumerable<Annotation>IList<Annotation>

Inherited Members DocumentElementCollectionBase<Annotation, RadFixedPage>.GetEnumerator()DocumentElementCollectionBase<Annotation, RadFixedPage>.IndexOf(Annotation)DocumentElementCollectionBase<Annotation, RadFixedPage>.Insert(int, Annotation)DocumentElementCollectionBase<Annotation, RadFixedPage>.InsertRange(int, IEnumerable<Annotation>)DocumentElementCollectionBase<Annotation, RadFixedPage>.RemoveAt(int)DocumentElementCollectionBase<Annotation, RadFixedPage>.RemoveRange(int, int)DocumentElementCollectionBase<Annotation, RadFixedPage>.Clear()DocumentElementCollectionBase<Annotation, RadFixedPage>.Contains(Annotation)DocumentElementCollectionBase<Annotation, RadFixedPage>.CopyTo(Annotation[], int)DocumentElementCollectionBase<Annotation, RadFixedPage>.Remove(Annotation)DocumentElementCollectionBase<Annotation, RadFixedPage>.Add(Annotation)DocumentElementCollectionBase<Annotation, RadFixedPage>.CountDocumentElementCollectionBase<Annotation, RadFixedPage>.this[int]...

Constructors

Create an annotations collection for the specified page and manage interactive PDF annotations.

C#
public AnnotationCollection(RadFixedPage parent)
Parameters:parentRadFixedPage

The parent.

Methods

Add a highlight annotation to emphasize text or content with a background highlight.

C#
public TextMarkupAnnotation AddHighlight(Rect rect)
Parameters:rectRect

The rectangle defining the area to highlight in page coordinates.

Returns:

TextMarkupAnnotation

The created highlight annotation.

Add a line annotation that draws a straight line between two points.

C#
public LineAnnotation AddLine(Point start, Point end)
Parameters:startPoint

The starting point of the line in page coordinates.

endPoint

The ending point of the line in page coordinates.

Returns:

LineAnnotation

The created line annotation.

Add a link annotation that executes the specified action when activated.

C#
public Link AddLink(Action action)
Parameters:actionAction

The action to execute when the link is clicked.

Returns:

Link

The newly created link annotation.

Add a link annotation that navigates to the specified destination within the document.

C#
public Link AddLink(Destination destination)
Parameters:destinationDestination

The document destination to navigate to when the link is clicked.

Returns:

Link

The newly created link annotation.

Add a link annotation that navigates to the given named destination within the document.

C#
public Link AddLink(NamedDestination namedDestination)
Parameters:namedDestinationNamedDestination

The named destination to navigate to when the link is clicked.

Returns:

Link

The newly created link annotation.

Add a popup annotation that displays additional content for a parent markup annotation.

C#
public PopupAnnotation AddPopup(MarkupAnnotation parent)
Parameters:parentMarkupAnnotation

The parent markup annotation that this popup will be associated with.

Returns:

PopupAnnotation

The created popup annotation.

Add a squiggly underline annotation to mark text with a wavy underline.

C#
public TextMarkupAnnotation AddSquiggly(Rect rect)
Parameters:rectRect

The rectangle defining the bounds of the squiggly underline in page coordinates.

Returns:

TextMarkupAnnotation

The newly created squiggly underline annotation.

Add a stamp annotation that displays a rubber stamp-like visual or text.

C#
public StampAnnotation AddStamp(Rect rect)
Parameters:rectRect

The rectangle defining the area for the stamp in page coordinates.

Returns:

StampAnnotation

The created stamp annotation.

Add a strikeout annotation to draw a line through text.

C#
public TextMarkupAnnotation AddStrikeout(Rect rect)
Parameters:rectRect

The rectangle defining the area to strike out in page coordinates.

Returns:

TextMarkupAnnotation

The created strikeout annotation.

Add a text annotation that shows a pop-up note when activated.

C#
public TextAnnotation AddText(Rect rect)
Parameters:rectRect

The rectangle defining the clickable area for the text annotation in page coordinates.

Returns:

TextAnnotation

The created text annotation.

Add an underline annotation to draw a straight underline beneath text.

C#
public TextMarkupAnnotation AddUnderline(Rect rect)
Parameters:rectRect

The rectangle defining the area to underline in page coordinates.

Returns:

TextMarkupAnnotation

The created underline annotation.

Executes the action after the item is added to the collection.

C#
protected override void OnAfterAdd(Annotation item)
Parameters:itemAnnotation

The annotation that has been added to the collection.

Overrides: DocumentElementCollectionBase<Annotation, RadFixedPage>.OnAfterAdd(Annotation)

Executes the action after the item is removed from the collection.

C#
protected override void OnAfterRemove(Annotation item)
Parameters:itemAnnotation

The annotation that has been removed from the collection.

Overrides: DocumentElementCollectionBase<Annotation, RadFixedPage>.OnAfterRemove(Annotation)