ComponentOne RichTextBox for WPF and Silverlight
MakeHyperlink Method (EditExtensions)

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
Makes a text range into a hyperlink.
Syntax
'Declaration
 
Public Shared Sub MakeHyperlink( _
   ByVal range As C1TextRange, _
   ByVal uri As System.Uri, _
   Optional ByVal targetName As System.String _
) 
public static void MakeHyperlink( 
   C1TextRange range,
   System.Uri uri,
   System.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

Reference

EditExtensions Class
EditExtensions Members