# BarcodeCollection.Remove Method

> Removes a barcode from a Text Control document.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 19.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 > BarcodeCollection.Remove Method
- **427 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-datavisualization/barcodecollection/remove-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-datavisualization/barcodecollection/remove-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-datavisualization/barcodecollection/remove-method/llms-full.txt

---

### Description

Removes a barcode from a Text Control document.

### Syntax

```csharp
public bool Remove(BarcodeFrame barcodeFrame);
```

```vbnet
Public Function Remove(barcodeFrame As BarcodeFrame) As Boolean
```

### Parameters

| Parameter | Description |
|---|---|
| barcodeFrame | Specifies the barcode to remove. |

### Return Value

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

### Examples

The following example removes an item from the barcode collection.

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

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

---

## Nearby

- **Previous:** [BarcodeCollection.GetItem Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-datavisualization/barcodecollection/getitem-method/llms-full.txt)
- **Next:** [BarcodeEventArgs Class](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-datavisualization/barcodeeventargs/llms-full.txt)
