Item Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK 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; }Default Public ReadOnly Property Item(number As Integer) As HypertextLinkExamples
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.");textControl.Text = "Customer: Contoso Ltd."
textControl.Select(10, 12)
Dim hypertextLinkCollection As HypertextLinkCollection = textControl.HypertextLinks
hypertextLinkCollection.Add(New HypertextLink("Documentation", "https://docs.textcontrol.com/") With { .ID = 100 })
Console.WriteLine($"Item: {hypertextLinkCollection.Item(10)}")
Console.WriteLine("Hypertext Link Collection is ready for use.")Limitations
Read only.