Table of Contents

Property UrlTable

Namespace
Alternet.Editor.Wpf
Assembly
Alternet.Editor.Wpf.v9.dll

UrlTable

Represents hash table containing hyper-text characters.

[Browsable(false)]
public Hashtable UrlTable { get; }

Property Value

Hashtable

Examples

Here is how to use a UrlTable in the C# code:

using System;
using System.Collections;
using System.Windows;
using Alternet.Editor.Wpf;

public partial class MainWindow : Window
{
    private TextSource textSource;
    private void Window_Loaded(object sender, RoutedEventArgs e)
    {
        var textEdit1 = new TextEditor();
        textSource = new TextSource();
        textSource.LoadFile("myfile.txt");
        Hashtable hs = textSource.UrlTable;
        hs.Add('<', true);
        hs.Add('>', false);

        textEdit1.Source = this.textSource;
    }
}

Here is how to use a UrlTable in the Visual Basic code:

Imports System
Imports System.Collections
Imports System.Windows
Imports Alternet.Editor.Wpf

Partial Public Class MainWindow
    Inherits Window

    Private textSource As TextSource

    Private Sub Window_Loaded(ByVal sender As Object, ByVal e As RoutedEventArgs)
        Dim textEdit1 = New TextEditor()
        textSource = New TextSource()
        textSource.LoadFile("myfile.txt")
        Dim hs As Hashtable = textSource.UrlTable
        hs.Add("<"c, True)
        hs.Add(">"c, False)

        textEdit1.Source = Me.textSource
    End Sub

    Private Sub Button_Click(ByVal sender As Object, ByVal e As RoutedEventArgs)
        Console.WriteLine(textSource.State.ToString())
    End Sub
End Class

Remarks

UrlTable contains characters used in the hypertext references, such as HTTP or FTP URLs.