# DrawingCollection.Remove Method

> Removes a drawing from a Text Control document.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 23.0
- **Namespace:** `TXTextControl.DataVisualization`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.DataVisualization > DrawingCollection.Remove Method
- **427 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-datavisualization/drawingcollection/remove-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-datavisualization/drawingcollection/remove-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-datavisualization/drawingcollection/remove-method/llms-full.txt

---

### Description

Removes a drawing from a Text Control document.

### Syntax

```csharp
public bool Remove(DrawingFrame drawingFrame);
```

```vbnet
Public Function Remove(drawingFrame As DrawingFrame) As Boolean
```

### Parameters

| Parameter | Description |
|---|---|
| drawingFrame | Specifies the drawing to remove. |

### Return Value

The return value is true, if the drawing could be removed. Otherwise, it is false.

### Examples

The following example removes an item from the drawing collection.

```csharp
if (drawingCollection.Remove(new TXTextControl.DataVisualization.DrawingFrame("Approved")))
{
    Console.WriteLine("Remove completed successfully.");
}
```

```vbnet
If drawingCollection.Remove(New TXTextControl.DataVisualization.DrawingFrame("Approved")) Then
    Console.WriteLine("Remove completed successfully.")
End If
```

---

## Nearby

- **Previous:** [DrawingCollection.GetItem Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-datavisualization/drawingcollection/getitem-method/llms-full.txt)
- **Next:** [DrawingEventArgs Class](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-datavisualization/drawingeventargs/llms-full.txt)
