Uredi

Deli z drugimi prek


RichTextBox.OnLinkClicked(LinkClickedEventArgs) Method

Definition

Raises the LinkClicked event.

protected:
 virtual void OnLinkClicked(System::Windows::Forms::LinkClickedEventArgs ^ e);
protected virtual void OnLinkClicked (System.Windows.Forms.LinkClickedEventArgs e);
abstract member OnLinkClicked : System.Windows.Forms.LinkClickedEventArgs -> unit
override this.OnLinkClicked : System.Windows.Forms.LinkClickedEventArgs -> unit
Protected Overridable Sub OnLinkClicked (e As LinkClickedEventArgs)

Parameters

e
LinkClickedEventArgs

A LinkClickedEventArgs that contains the event data.

Remarks

Raising an event invokes the event handler through a delegate. For more information, see Handling and Raising Events.

The OnLinkClicked method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

Notes to Inheritors

When overriding OnLinkClicked(LinkClickedEventArgs) in a derived class, be sure to call the base class's OnLinkClicked(LinkClickedEventArgs) method so that registered delegates receive the event.

Applies to

See also