TX Text Control .NET for Windows Forms

Remove Method

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

Description

Removes an object of the type Shape from the collection.

Syntax

public void Remove(Shape shape);

Parameters

ParameterDescription
shape

Specifies the shape to remove.

Examples

The following example removes the first shape when the collection is not empty.

if (shapeCollection.Count > 0)
{
    TXTextControl.Drawing.Shape shape = shapeCollection[1];
    shapeCollection.Remove(shape);
}