ShapeCollection Class
- Namespace
TXTextControl.Drawing
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. Core. SDK
- Assembly
TXDrawing.dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. Core. SDK TXDrawing.from the setup.dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXDrawing.dll
- Inherits
- Collection
Base - Shape
Collection
- Collection
- Implements
- IEnumerable, IEnumerator
Description
An instance of the ShapeCollection class contains all displayed shapes represented through objects of type Shape. It is inherited from the abstract class System.Collections.CollectionBase and implements the System.Collections.IEnumerable and System.Collections.IEnumerator interfaces. For a list of properties, methods and events of these classes and interfaces see the .NET Framework reference.
Syntax
public class ShapeCollection : CollectionBase, IEnumerable, IEnumeratorPublic Class ShapeCollection
Inherits CollectionBase
Implements IEnumerable, IEnumeratorExamples
The following example includes the current value from a Shape Collection object in application diagnostics. The created object is then available to the surrounding document workflow.
Console.WriteLine($"Current: {shapeCollection.Current}");
Console.WriteLine("Shape Collection is ready for use.");Console.WriteLine($"Current: {shapeCollection.Current}")
Console.WriteLine("Shape Collection is ready for use.")Members
Properties
| Property | Description |
|---|---|
| Current | Not described in the reference. public object Current { get; } |
| Item | Gets an object of type Shape from the collection. This property is the indexer for the ShapeCollection class. |
Methods
| Method | Description |
|---|---|
| Add | Adds an object of the type Shape to the collection. |
| Insert | Inserts an object of the type Shape to the collection at a specified index. |
| MoveNext | Not described in the reference. public bool MoveNext(); |
| Remove | Removes an object of the type Shape from the collection. |
| RemoveAt | Not described in the reference. public void RemoveAt(int index); |
| Reset | Not described in the reference. public void Reset(); |