ComponentOne RichTextBox for WPF
C1.WPF.RichTextBox Namespace / EditExtensions Class / MakeHyperlink Method
A C1.WPF.RichTextBox.Documents.C1TextRange to make into a hyperlink.
A System.Uri for the hyperlink.
A TargetName for the hyperlink

In This Topic
    MakeHyperlink Method (EditExtensions)
    In This Topic
    Makes a text range into a hyperlink.
    Syntax
    'Declaration
     
    
    Public Shared Sub MakeHyperlink( _
       ByVal range As C1TextRange, _
       ByVal uri As Uri, _
       Optional ByVal targetName As String _
    ) 
    public static void MakeHyperlink( 
       C1TextRange range,
       Uri uri,
       string targetName
    )

    Parameters

    range
    A C1.WPF.RichTextBox.Documents.C1TextRange to make into a hyperlink.
    uri
    A System.Uri for the hyperlink.
    targetName
    A TargetName for the hyperlink
    Remarks
    If the range spans several blocks this method generates a C1.WPF.RichTextBox.Documents.C1Hyperlink element per block.
    See Also