Item Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets the editable region with the specified number from the collection. The number must be between 1 and Count. In C# this property is the indexer for the EditableRegionCollection class.
Syntax
public EditableRegion this[int number] { get; }Default Public ReadOnly Property Item(number As Integer) As EditableRegionExamples
The following example works with editable regions in the current document by using EditableRegionCollection.Item.
textControl.Text = "Customer: Contoso Ltd.";
textControl.Select(10, 12);
EditableRegionCollection editableRegionCollection = textControl.EditableRegions;
editableRegionCollection.Add(new EditableRegion("ReviewTeam", 100));
Console.WriteLine($"Item: {editableRegionCollection[10]}");
Console.WriteLine("Editable Region Collection is ready for use.");textControl.Text = "Customer: Contoso Ltd."
textControl.Select(10, 12)
Dim editableRegionCollection As EditableRegionCollection = textControl.EditableRegions
editableRegionCollection.Add(New EditableRegion("ReviewTeam", 100))
Console.WriteLine($"Item: {editableRegionCollection.Item(10)}")
Console.WriteLine("Editable Region Collection is ready for use.")Limitations
Read only.