Item Property
- Namespace
TXTextControl.Drawing
- Package
TXTextControl.asTextControl. WinForms. SDK TXDrawing.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets an object of type Shape from the collection. This property is the indexer for the ShapeCollection class.
Syntax
public Shape this[int number] { get; }Default Public ReadOnly Property Item(number As Integer) As ShapeExamples
The following example includes the item value in application diagnostics. The created object is then available to the surrounding document workflow.
Console.WriteLine($"Item: {shapeCollection[10]}");
Console.WriteLine("Shape Collection is ready for use.");Console.WriteLine($"Item: {shapeCollection.Item(10)}")
Console.WriteLine("Shape Collection is ready for use.")