# LlbLink class
{: .no_toc }

One link of a [**LinkLabel**](/tB/Packages/Contributed/VBCCR18/LinkLabel/index.md): its text, its address, its name and its state. A program gets one from the control's [**Links**](/tB/Packages/Contributed/VBCCR18/LinkLabel/LlbLinks.md) collection, from [**SelectedItem**](/tB/Packages/Contributed/VBCCR18/LinkLabel/index.md#selecteditem) and [**HitTest**](/tB/Packages/Contributed/VBCCR18/LinkLabel/index.md#hittest), and as the *Link* argument of the control's events.

```tb check_build check_run arch=win32,win64
LinkLabel1.Caption = "<A HREF=""https://example.com/docs"" ID=""docs"">Documentation</A>"
With LinkLabel1.Links(1)
    Debug.Print .Caption
    Debug.Print .IDName
    .Visited = True
    .Enabled = False
    Debug.Print .Visited
    Debug.Print .Enabled
End With
' Output:
' Documentation
' docs
' True
' False
```

An **LlbLink** stands for the link of its number, not for a link it once was. Every property reads and writes the control at the time of the call, so an object kept in a variable while the control's caption changes is then the link that has that number in the new caption. Where the new caption has no link of that number, its properties return empty strings and **False**.

A program cannot make an **LlbLink** object with **New**.

* TOC
{:toc}

Properties
----------

### Caption
{: .no_toc }

The text of the link, without its marks. **String**. An assignment puts the new text in the link's place in the control's [**Caption**](/tB/Packages/Contributed/VBCCR18/LinkLabel/index.md#caption), and with that makes all the links again from the marks: see [The caption and its links](/tB/Packages/Contributed/VBCCR18/LinkLabel/index.md#the-caption-and-its-links).

### Enabled
{: .no_toc }

Whether the link takes a click and the Enter key. **Boolean**. A new link is enabled.

### Height, Left, Top, Width
{: .no_toc }

The place and the size of the link in the control, in the scale units of the control's container, **Left** and **Top** measured from the control's top left corner. **Single**, read-only.

An assignment to any of the four raises run-time error 383.

### Hot
{: .no_toc }

Whether the link is the hot one, drawn as the link under the pointer is. **Boolean**. With the control's [**HotTracking**](/tB/Packages/Contributed/VBCCR18/LinkLabel/index.md#hottracking) the control sets it as the pointer moves.

### IDName
{: .no_toc }

The name of the link, a string of the program's own by which a handler can tell the links apart. **String**. It is the `ID` of the link's mark in the caption, or what the program assigned.

### Index
{: .no_toc }

The number of the link in the [**LlbLinks**](/tB/Packages/Contributed/VBCCR18/LinkLabel/LlbLinks.md) collection, from 1. **Long**, read-only.

### Selected
{: .no_toc }

Whether the link has the focus rectangle of the control. **Boolean**. Setting it to **True** selects this link in place of the one that was selected.

### URL
{: .no_toc }

The address of the link. **String**. It is the `HREF` of the link's mark in the caption, or what the program assigned. The control does nothing with it: a [**LinkActivate**](/tB/Packages/Contributed/VBCCR18/LinkLabel/index.md#linkactivate) handler reads it. It is the default member, so a link used as a value gives its address.

### Visited
{: .no_toc }

Whether the link is marked as one that the user has followed: the `LIS_VISITED` state of the link control of Windows. **Boolean**. The control never sets it: a [**LinkActivate**](/tB/Packages/Contributed/VBCCR18/LinkLabel/index.md#linkactivate) handler does. With visual styles, Windows draws a visited link in the same color as the others.

## See Also

- [LinkLabel](/tB/Packages/Contributed/VBCCR18/LinkLabel/index.md) class
- [LlbLinks](/tB/Packages/Contributed/VBCCR18/LinkLabel/LlbLinks.md) class -- the collection of the links
