skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class AnnotationCollection

Represents a collection of annotations on a PDF page, providing methods to add various types of annotations.

Inheritance
System.Object
DocumentElementCollectionBase<Annotation, RadFixedPage>
DocumentElementCollection<Annotation, RadFixedPage>
AnnotationCollection
Inherited Members
DocumentElementCollection<Annotation, RadFixedPage>.SetParent(Annotation, RadFixedPage)
DocumentElementCollection<Annotation, RadFixedPage>.VerifyDocumentElementOnInsert(Annotation)
DocumentElementCollectionBase<Annotation, RadFixedPage>.GetEnumerator()
DocumentElementCollectionBase<Annotation, RadFixedPage>.IndexOf(Annotation)
DocumentElementCollectionBase<Annotation, RadFixedPage>.Insert(Int32, Annotation)
DocumentElementCollectionBase<Annotation, RadFixedPage>.InsertRange(Int32, IEnumerable<Annotation>)
DocumentElementCollectionBase<Annotation, RadFixedPage>.RemoveAt(Int32)
DocumentElementCollectionBase<Annotation, RadFixedPage>.RemoveRange(Int32, Int32)
DocumentElementCollectionBase<Annotation, RadFixedPage>.OnAfterAdd(Annotation)
DocumentElementCollectionBase<Annotation, RadFixedPage>.OnAfterRemove(Annotation)
DocumentElementCollectionBase<Annotation, RadFixedPage>.Clear()
DocumentElementCollectionBase<Annotation, RadFixedPage>.Contains(Annotation)
DocumentElementCollectionBase<Annotation, RadFixedPage>.CopyTo(Annotation[], Int32)
DocumentElementCollectionBase<Annotation, RadFixedPage>.Remove(Annotation)
DocumentElementCollectionBase<Annotation, RadFixedPage>.IEnumerable.GetEnumerator()
DocumentElementCollectionBase<Annotation, RadFixedPage>.Add(Annotation)
DocumentElementCollectionBase<Annotation, RadFixedPage>.Count
DocumentElementCollectionBase<Annotation, RadFixedPage>.ICollection<Annotation>.IsReadOnly
DocumentElementCollectionBase<Annotation, RadFixedPage>.Owner
DocumentElementCollectionBase<Annotation, RadFixedPage>.Item[Int32]
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
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

Constructors

AnnotationCollection(RadFixedPage)

Initializes a new instance of the AnnotationCollection class.

Declaration
public AnnotationCollection(RadFixedPage parent)
Parameters
RadFixedPage parent

The parent.

Methods

AddHighlight(Rect)

Creates and adds a highlight annotation to mark text or content with a highlighted background.

Declaration
public TextMarkupAnnotation AddHighlight(Rect rect)
Parameters
System.Windows.Rect rect

The rectangle defining the area to highlight in page coordinates.

Returns
TextMarkupAnnotation

The created highlight annotation.

AddLine(Point, Point)

Creates and adds a line annotation that draws a straight line between two points.

Declaration
public LineAnnotation AddLine(Point start, Point end)
Parameters
System.Windows.Point start

The starting point of the line in page coordinates.

System.Windows.Point end

The ending point of the line in page coordinates.

Returns
LineAnnotation

The created line annotation.

AddLink(Action)

Creates and adds a hyperlink annotation that executes a specified action when clicked.

Declaration
public Link AddLink(Action action)
Parameters
Action action

The action to execute when the link is clicked.

Returns
Link

The newly created link annotation.

AddLink(Destination)

Creates and adds a hyperlink annotation that navigates to a specified destination within the document.

Declaration
public Link AddLink(Destination destination)
Parameters
Destination destination

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

Returns
Link

The newly created link annotation.

AddLink(NamedDestination)

Creates and adds a hyperlink annotation that navigates to a named destination within the document.

Declaration
public Link AddLink(NamedDestination namedDestination)
Parameters
NamedDestination namedDestination

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

Returns
Link

The newly created link annotation.

AddPopup(MarkupAnnotation)

Creates and adds a popup annotation that displays additional content for a parent markup annotation.

Declaration
public PopupAnnotation AddPopup(MarkupAnnotation parent)
Parameters
MarkupAnnotation parent

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

Returns
PopupAnnotation

The created popup annotation.

AddSquiggly(Rect)

Creates and adds a squiggly underline annotation to mark text with a wavy underline effect.

Declaration
public TextMarkupAnnotation AddSquiggly(Rect rect)
Parameters
System.Windows.Rect rect

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

Returns
TextMarkupAnnotation

The newly created squiggly underline annotation.

AddStamp(Rect)

Creates and adds a stamp annotation that displays a rubber stamp-like image or text.

Declaration
public StampAnnotation AddStamp(Rect rect)
Parameters
System.Windows.Rect rect

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

Returns
StampAnnotation

The created stamp annotation.

AddStrikeout(Rect)

Creates and adds a strikeout annotation to mark text with a line through it.

Declaration
public TextMarkupAnnotation AddStrikeout(Rect rect)
Parameters
System.Windows.Rect rect

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

Returns
TextMarkupAnnotation

The created strikeout annotation.

AddText(Rect)

Creates and adds a text annotation that displays a pop-up note when clicked.

Declaration
public TextAnnotation AddText(Rect rect)
Parameters
System.Windows.Rect rect

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

Returns
TextAnnotation

The created text annotation.

AddUnderline(Rect)

Creates and adds an underline annotation to mark text with a straight underline.

Declaration
public TextMarkupAnnotation AddUnderline(Rect rect)
Parameters
System.Windows.Rect rect

The rectangle defining the area to underline in page coordinates.

Returns
TextMarkupAnnotation

The created underline annotation.

OnAfterAdd(Annotation)

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

Declaration
protected override void OnAfterAdd(Annotation item)
Parameters
Annotation item

The annotation that has been added to the collection.

Overrides
Telerik.Windows.Documents.Core.Data.DocumentElementCollectionBase<Telerik.Windows.Documents.Fixed.Model.Annotations.Annotation, Telerik.Windows.Documents.Fixed.Model.RadFixedPage>.OnAfterAdd(Telerik.Windows.Documents.Fixed.Model.Annotations.Annotation)

OnAfterRemove(Annotation)

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

Declaration
protected override void OnAfterRemove(Annotation item)
Parameters
Annotation item

The annotation that has been removed from the collection.

Overrides
Telerik.Windows.Documents.Core.Data.DocumentElementCollectionBase<Telerik.Windows.Documents.Fixed.Model.Annotations.Annotation, Telerik.Windows.Documents.Fixed.Model.RadFixedPage>.OnAfterRemove(Telerik.Windows.Documents.Fixed.Model.Annotations.Annotation)
Getting Started
  • Getting Started
Support Resources
  • Documentation
Community
  • Forums
  • Blogs
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.