AnnotationCollection
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:
public sealed class AnnotationCollection : DocumentElementCollection<Annotation, RadFixedPage>, IList<Annotation>, ICollection<Annotation>, IEnumerable<Annotation>, IEnumerable
Inheritance: objectDocumentElementCollectionBase<Annotation, RadFixedPage>DocumentElementCollection<Annotation, RadFixedPage>AnnotationCollection
Implements:
Inherited Members
Constructors
Create an annotations collection for the specified page and manage interactive PDF annotations.
Methods
Add a highlight annotation to emphasize text or content with a background highlight.
public TextMarkupAnnotation AddHighlight(Rect rect)
The rectangle defining the area to highlight in page coordinates.
Returns:The created highlight annotation.
Add a line annotation that draws a straight line between two points.
public LineAnnotation AddLine(Point start, Point end)
The starting point of the line in page coordinates.
endPointThe ending point of the line in page coordinates.
Returns:The created line annotation.
Add a link annotation that navigates to the specified destination within the document.
public Link AddLink(Destination destination)
The document destination to navigate to when the link is clicked.
Returns:The newly created link annotation.
Add a link annotation that navigates to the given named destination within the document.
public Link AddLink(NamedDestination namedDestination)
The named destination to navigate to when the link is clicked.
Returns:The newly created link annotation.
Add a popup annotation that displays additional content for a parent markup annotation.
public PopupAnnotation AddPopup(MarkupAnnotation parent)
The parent markup annotation that this popup will be associated with.
Returns:The created popup annotation.
Add a squiggly underline annotation to mark text with a wavy underline.
public TextMarkupAnnotation AddSquiggly(Rect rect)
The rectangle defining the bounds of the squiggly underline in page coordinates.
Returns:The newly created squiggly underline annotation.
Add a stamp annotation that displays a rubber stamp-like visual or text.
public StampAnnotation AddStamp(Rect rect)
The rectangle defining the area for the stamp in page coordinates.
Returns:The created stamp annotation.
Add a strikeout annotation to draw a line through text.
public TextMarkupAnnotation AddStrikeout(Rect rect)
The rectangle defining the area to strike out in page coordinates.
Returns:The created strikeout annotation.
Add a text annotation that shows a pop-up note when activated.
public TextAnnotation AddText(Rect rect)
The rectangle defining the clickable area for the text annotation in page coordinates.
Returns:The created text annotation.
Add an underline annotation to draw a straight underline beneath text.
public TextMarkupAnnotation AddUnderline(Rect rect)
The rectangle defining the area to underline in page coordinates.
Returns:The created underline annotation.
Executes the action after the item is added to the collection.
protected override void OnAfterAdd(Annotation item)
The annotation that has been added to the collection.
Overrides:
Executes the action after the item is removed from the collection.
protected override void OnAfterRemove(Annotation item)
The annotation that has been removed from the collection.
Overrides: