# DeleteBookmarksDialog Class

> The DeleteBookmarksDialog class implements a Windows Forms dialog box which shows all targets in the current document. The user can jump to a target or can delete one or more targets. Each item of the dialog box has a name, available through its Name property, which corresponds with a member of the DeleteBookmarksDialog.DialogItem enumeration. The DeleteBookmarksDialog.FindItem method can be used to get a certain item and manipulate, move or delete it. The DeleteBookmarksDialog is a modal dialog box which must be shown with the DeleteBookmarksDialog.ShowDialog method.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 23.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.Windows.Forms.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Windows.Forms.dll` from the setup
- **Inherits:** `System.Windows.Forms.Form`
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > DeleteBookmarksDialog Class
- **1043 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/deletebookmarksdialog/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/deletebookmarksdialog/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/deletebookmarksdialog/llms-full.txt

---

### Description

The DeleteBookmarksDialog class implements a Windows Forms dialog box which shows all targets in the current document. The user can jump to a target or can delete one or more targets. Each item of the dialog box has a name, available through its Name property, which corresponds with a member of the [DeleteBookmarksDialog.DialogItem](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/deletebookmarksdialog/dialogitem-enumeration/llms-full.txt) enumeration. The [DeleteBookmarksDialog.FindItem](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/deletebookmarksdialog/finditem-method/llms-full.txt) method can be used to get a certain item and manipulate, move or delete it. The DeleteBookmarksDialog is a modal dialog box which must be shown with the `DeleteBookmarksDialog.ShowDialog` method.

### Syntax

```csharp
public class DeleteBookmarksDialog : Form
```

```vbnet
Public Class DeleteBookmarksDialog
    Inherits Form
```

### Examples

The following example creates an DeleteBookmarksDialog object and shows the dialog box:

```csharp
DeleteBookmarksDialog dlg = new DeleteBookmarksDialog(textControl1);
dlg.ShowDialog();
```

```vbnet
Dim dlg As New DeleteBookmarksDialog(textControl1)
dlg.ShowDialog()
```

The following example creates a Delete Bookmarks Dialog instance and configures its allow transparency setting for a document workflow.

```csharp
using DeleteBookmarksDialog deleteBookmarksDialog = new(new TextControl());
deleteBookmarksDialog.AllowTransparency = true;
```

```vbnet
Dim deleteBookmarksDialog As New DeleteBookmarksDialog(New TextControl())
deleteBookmarksDialog.AllowTransparency = True
```

---

## In This Section

- [DeleteBookmarksDialog Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/deletebookmarksdialog/constructor/llms-full.txt): Creates a DeleteBookmarksDialog object for the specified Windows Forms TextControl.
- [DeleteBookmarksDialog.DialogItem Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/deletebookmarksdialog/dialogitem-enumeration/llms-full.txt): Each DialogItem represents an item in a DeleteBookmarksDialog dialog box. The corresponding string of a DialogItem is the same as the item's Name property. The DialogItem enumeration can be used with the DeleteBookmarksDialog.FindItem method to get the item and manipulate it.
- [DeleteBookmarksDialog.FindItem Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/deletebookmarksdialog/finditem-method/llms-full.txt): Finds a control that has the provided identifier name.

---

## Nearby

- **Previous:** [DateFormFieldEventArgs.DateFormField Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/dateformfieldeventargs/dateformfield-property/llms-full.txt)
- **Next:** [DeleteBookmarksDialog Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/deletebookmarksdialog/constructor/llms-full.txt)
