편집

다음을 통해 공유


LinkClickedEventArgs Constructors

Definition

Overloads

LinkClickedEventArgs(String)

Initializes a new instance of the LinkClickedEventArgs class.

LinkClickedEventArgs(String, Int32, Int32)

Initializes a new instance of the LinkClickedEventArgs class.

LinkClickedEventArgs(String)

Initializes a new instance of the LinkClickedEventArgs class.

public:
 LinkClickedEventArgs(System::String ^ linkText);
public LinkClickedEventArgs (string linkText);
public LinkClickedEventArgs (string? linkText);
new System.Windows.Forms.LinkClickedEventArgs : string -> System.Windows.Forms.LinkClickedEventArgs
Public Sub New (linkText As String)

Parameters

linkText
String

The text of the link that is clicked in the RichTextBox control.

Remarks

The text specified in the linkText parameter can be a URL, file path, or other data that you want specified for the link being clicked.

Applies to

LinkClickedEventArgs(String, Int32, Int32)

Initializes a new instance of the LinkClickedEventArgs class.

public:
 LinkClickedEventArgs(System::String ^ linkText, int linkStart, int linkLength);
public LinkClickedEventArgs (string? linkText, int linkStart, int linkLength);
new System.Windows.Forms.LinkClickedEventArgs : string * int * int -> System.Windows.Forms.LinkClickedEventArgs
Public Sub New (linkText As String, linkStart As Integer, linkLength As Integer)

Parameters

linkText
String

The text of the link being clicked.

linkStart
Int32

The start of the link span being clicked.

linkLength
Int32

The length of the link span being clicked.

Exceptions

The value for linkStart or linkLength is negative.

-or-

The values for linkStart and linkLength would overflow addition.

Applies to