ClassifiedTextElement.CreateHyperlink(String, String, Action) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.