次の方法で共有


ClassifiedTextElement.CreateHyperlink(String, String, Action) Method

Definition

Creates a new element with a hyperlink.

public:
 static Microsoft::VisualStudio::Text::Adornments::ClassifiedTextElement ^ CreateHyperlink(System::String ^ text, System::String ^ tooltip, Action ^ navigationAction);
public static Microsoft.VisualStudio.Text.Adornments.ClassifiedTextElement CreateHyperlink (string text, string tooltip, Action navigationAction);
static member CreateHyperlink : string * string * Action -> Microsoft.VisualStudio.Text.Adornments.ClassifiedTextElement
Public Shared Function CreateHyperlink (text As String, tooltip As String, navigationAction As Action) As ClassifiedTextElement

Parameters

text
String

The text rendered by this run.

tooltip
String

The tooltip for the hyperlink.

navigationAction
Action

The action to execute on navigation.

Returns

ClassifiedTextElement containing the hyperlink.

Applies to