Skip to content

Commit a6a54b9

Browse files
authored
Update annotations.md
1 parent 6ac9d04 commit a6a54b9

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

controls/pdfviewer/features/annotations.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
---
22
title: Annotations
33
page_title: Annotations - WinForms PdfViewer Control
4-
description: WinForms PdfViewer supports Link annotations, which means that if you open a PDF file that includes hyperlinks to absolute URIs, you can click them and have a window open, navigated to the respective address.
4+
description: WinForms PdfViewer supports Link annotations, which means that if you open a PDF file that includes hyperlinks to absolute URIs, you can click them and have a window open, navigate to the respective address.
55
slug: winforms/pdfviewer/annotations
66
tags: annotations
77
published: True
88
position: 0
99
---
1010

1111
# Annotations
12-
__RadPdfViewer__ supports link annotations, which means that if you open a PDF file that includes hyperlinks to absolute URIs, you can click them and have a window open, navigated to the respective address. In addition, if there are links pointing to bookmarks in the same document, the view port will be scrolled to the destination specified in the link.
1312

14-
The current API includes the following members, which allow customization of the default behavior or implementing custom logic:
13+
__RadPdfViewer__ supports link annotations, which means that if you open a PDF file that includes hyperlinks to absolute URIs, you can click them and have a window open, and navigate to the respective address. In addition, if there are links pointing to bookmarks in the same document, the view port will be scrolled to the destination specified in the link.
1514

16-
* __AnnotationClicked__ event of __RadPdfViewer__: This event is fired when you click on an annotation such as a hyperlink. It comes handy when you want to detect or even cancel the opening of a web page. The __AnnotationEventArgs__ contain the Annotation as property and the Link itself has information of its Action, i.e. if it is a UriAction. Handling the event in the following manner will not only show the Uri of each clicked link as the text of a MessageBox, but will also cancel the default behavior.
15+
The current API includes the following members, which allow customization of the default behavior or implementation of custom logic:
16+
17+
* __AnnotationClicked__ event of __RadPdfViewer__: This event is fired when you click on an annotation such as a hyperlink. It comes in handy when you want to detect or even cancel the opening of a web page. The __AnnotationEventArgs__ contains the Annotation as property and the Link itself has information of its Action, i.e. if it is a UriAction. Handling the event in the following manner will not only show the Uri of each clicked link as the text of a MessageBox but will also cancel the default behavior.
1718

1819
#### AnnotationClicked Event Handler
1920

@@ -103,7 +104,7 @@ End Sub
103104
{{endregion}}
104105

105106

106-
* __Annotations__ property of __RadFixedDocument__ – A collection which returns all annotations in the document. For example you can retrieve all links using the following code:
107+
* __Annotations__ property of __RadFixedDocument__ – A collection which returns all annotations in the document. For example, you can retrieve all links using the following code:
107108

108109
#### Get Annotation Links
109110

@@ -175,7 +176,7 @@ End Function
175176

176177
{{endregion}}
177178

178-
In this way it would be possible to create some UI that contains all bookmarks. Then, you could implement the same action as the one being executed when a hyperlink is clicked, i.e. scroll the document to the specific place in the document where the destination of the link is placed. The following code can be used for this purpose – navigating to a specific destination:
179+
In this way, creating some UI containing all bookmarks would be possible. Then, you could implement the same action as the one being executed when a hyperlink is clicked, i.e. scroll the document to the specific place in the document where the destination of the link is placed. The following code can be used for this purpose – navigating to a specific destination:
179180

180181
#### Navigate to Destination
181182

@@ -199,7 +200,7 @@ End Sub
199200

200201
{{endregion}}
201202

202-
# See Also
203+
## See Also
203204

204205
* [Getting Started]({%slug winforms/pdfviewer/getting-started%})
205206
* [Logical Structure]({%slug winforms/pdfviewer/structure/logical-structure%})

0 commit comments

Comments
 (0)