Table of Contents

Property UrlTable

Namespace
Alternet.Editor.TextSource
Assembly
Alternet.Editor.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 Alternet.Editor;
using Alternet.Editor.TextSource;

public partial class Form1 : Form
{
    private TextSource textSource;
    private void Form1_Load(object sender, EventArgs e)
    {
        var syntaxEdit = new SyntaxEdit(this.components);
        textSource = new TextSource(this.components);
        textSource.LoadFile("myfile.txt");
        Hashtable hs = textSource.UrlTable;
        hs.Add('<', true);
        hs.Add('>', false);

        syntaxEdit.Source = this.textSource;
    }
}

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

Imports System
Imports System.Collections

Imports Alternet.Editor
Imports Alternet.Editor.TextSource

Partial Public Class Form1
    Inherits Form

    Private textSource As TextSource

    Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs)
        Dim syntaxEdit = New SyntaxEdit(Me.components)
        textSource = New TextSource(Me.components)
        textSource.LoadFile("myfile.txt")
        Dim hs As Hashtable = textSource.UrlTable
        hs.Add("<"c, True)
        hs.Add(">"c, False)

        syntaxEdit.Source = Me.textSource
    End Sub
End Class

Remarks

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