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 DocumentLinkCollection class.
Syntax
public DocumentLink this[int number] { get; }Default Public ReadOnly Property Item(number As Integer) As DocumentLinkExamples
The following example works with document links in the current document by using DocumentLinkCollection.Item.
textControl.Text = "Customer: Contoso Ltd.";
textControl.Select(10, 12);
DocumentLinkCollection documentLinkCollection = textControl.DocumentLinks;
DocumentTarget target = new("CustomerDetails");
textControl.DocumentTargets.Add(target);
documentLinkCollection.Add(new DocumentLink("View customer details", target) { ID = 100 });
Console.WriteLine($"Item: {documentLinkCollection[10]}");
Console.WriteLine("Document Link Collection is ready for use.");textControl.Text = "Customer: Contoso Ltd."
textControl.Select(10, 12)
Dim documentLinkCollection As DocumentLinkCollection = textControl.DocumentLinks
Dim target As New DocumentTarget("CustomerDetails")
textControl.DocumentTargets.Add(target)
documentLinkCollection.Add(New DocumentLink("View customer details", target) With { .ID = 100 })
Console.WriteLine($"Item: {documentLinkCollection.Item(10)}")
Console.WriteLine("Document Link Collection is ready for use.")Limitations
Read only.