Skip to content

Commit a2324e4

Browse files
committed
update-richtexteditor-events
1 parent 5f8dd7b commit a2324e4

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

controls/richtexteditor/events.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,17 @@ The __RadRichTextEditor__ control raises the following specific events:
8787
8888
* An __EventArgs__ object.
8989

90-
* __HyperlinkClicked__ - occurs when the current page has changed. The event handler receives two arguments:
91-
90+
* __HyperlinkClicked__ - Occurs when the users clicks on a hyperlink in the current document. The event allows you to either cancel or replace the navigation logic. HyperlinkClicked event can be used as a confirmation from the end-user whether to proceed or not with opening a hyperlink due to security reasons. The event handler receives two arguments:
91+
9292
* The sender argument contains the __RadRichTextEditor__. This argument is of type object, but can be cast to the __RadRichTextEditor__ type.
9393
94-
* A __HyperlinkClickedEventArgs__ object. This argument allows you to access the URL and the target of the hyperlink.
94+
* A __HyperlinkClickedEventArgs__ object. This argument allows you to access the following properties:
95+
- __Handled__: Get or set a value indicating whether the event is handled.
96+
- __HyperlinkTarget__: Gets the target hyperlink.
97+
- __URL__: Gets the URL of the hyperlink.
98+
- __IsTrustedUrl__: Gets a value tha indicates if the URL passes the validation. If the URL is not trusted, the hyperlink will not be opened. Set this property to true to open the hyperlink.
99+
100+
The default hyperlink navigation can be cancelled by setting either the __Handled__ property of the HyperlinkClickedEventArgs to _true_ or __IsTrustedUrl__ to _false_. This is helpful when you need to validate the clicked hyperlink and prevent it from navigating to an unsecure link or process. For more information see [Hyperlink]({%slug winforms/richtexteditor-/features/hyperlink%}) article.
95101
96102
* __IsReadOnlyChanged__ - occurs when __IsReadOnly__ value has changed. The event handler receives two arguments:
97103

0 commit comments

Comments
 (0)