Remove Method
- Namespace
TXTextControl.Drawing
- Package
TXTextControl.asTextControl. Core. SDK TXDrawing.from the private NuGet feed or Text Control Offline Packagesdll
- Also in
TXTextControl.asTextControl. ASP. SDK TXDrawing.dll
Description
Removes an object of the type Shape from the collection.
Syntax
public void Remove(Shape shape);Public Sub Remove(shape As Shape)Parameters
| Parameter | Description |
|---|---|
| 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);
}If shapeCollection.Count > 0 Then
Dim shape As TXTextControl.Drawing.Shape = shapeCollection.Item(1)
shapeCollection.Remove(shape)
End If