TX Text Control .NET for WPF

Item Property

Property|Introduced in 23.0
Namespace
TXTextControl.Drawing
Package
TXTextControl.TextControl.WPF.SDK as TXDrawing.dll from the private NuGet feed or Text Control Offline Packages

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; }

Examples

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.");