# ServerTextControl.OnBarcodeDeleted Method

> Raises the BarcodeDeleted event.

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

---

### Description

Raises the BarcodeDeleted event.

### Syntax

```csharp
protected virtual void OnBarcodeDeleted(BarcodeEventArgs e);
```

```vbnet
Protected Overridable Sub OnBarcodeDeleted(e As BarcodeEventArgs)
```

### Parameters

| Parameter | Description |
|---|---|
| e | Specifies an [BarcodeEventArgs](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-datavisualization/barcodeeventargs/llms-full.txt) object that contains the event data. |

### Examples

The following example extends Server Text Control and performs custom processing when On Barcode Deleted is invoked.

```csharp
class CustomServerTextControl : ServerTextControl
{
    protected override void OnBarcodeDeleted(TXTextControl.DataVisualization.BarcodeEventArgs e)
    {
        // Add custom processing before registered event handlers run.
        base.OnBarcodeDeleted(e);
    }
}
```

```vbnet
Class CustomServerTextControl
    Inherits ServerTextControl

    Protected Overrides Sub OnBarcodeDeleted(e As TXTextControl.DataVisualization.BarcodeEventArgs)
        ' Add custom processing before registered event handlers run.
        MyBase.OnBarcodeDeleted(e)
    End Sub
End Class
```

---

## Nearby

- **Previous:** [ServerTextControl.OnBarcodeCreated Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/servertextcontrol/onbarcodecreated-method/llms-full.txt)
- **Next:** [ServerTextControl.OnCommentCreated Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/servertextcontrol/oncommentcreated-method/llms-full.txt)
