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 character from the collection. In C# this property is the indexer for the TextCharCollection class.
Syntax
public TextChar this[int number] { get; }Default Public ReadOnly Property Item(number As Integer) As TextCharExamples
The following example works with text chars in the current document by using TextCharCollection.Item.
TextCharCollection textCharCollection = textControl.TextChars;
textControl.Text = "Quarterly results\nRevenue increased by 12%.";
Console.WriteLine($"Item: {textCharCollection[10]}");
Console.WriteLine("Text Char Collection is ready for use.");Dim textCharCollection As TextCharCollection = textControl.TextChars
textControl.Text = "Quarterly results" & vbCrLf & "Revenue increased by 12%."
Console.WriteLine($"Item: {textCharCollection.Item(10)}")
Console.WriteLine("Text Char Collection is ready for use.")Limitations
Read only.