TX Text Control .NET Server

Item Property

Property|Introduced in 28.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

Description

Gets the field with the specified number from the collection. The number must be between 1 and Count. In C# this property is the indexer for the HypertextLinkCollection class.

Syntax

public HypertextLink this[int number] { get; }

Examples

The following example works with hypertext links in the current document by using HypertextLinkCollection.Item.

textControl.Text = "Customer: Contoso Ltd.";
textControl.Select(10, 12);
HypertextLinkCollection hypertextLinkCollection = textControl.HypertextLinks;
hypertextLinkCollection.Add(new HypertextLink("Documentation", "https://docs.textcontrol.com/") { ID = 100 });

Console.WriteLine($"Item: {hypertextLinkCollection[10]}");
Console.WriteLine("Hypertext Link Collection is ready for use.");

Limitations

Read only.