# DeleteBookmarksDialog Class

> The DeleteBookmarksDialog class implements a 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 WPF.DeleteBookmarksDialog.DialogItem enumeration. The FrameworkElement.FindName method can be used to get a certain item and manipulate, move or delete it. The WPF.DeleteBookmarksDialog is a modal dialog box which must be shown with the WPF.DeleteBookmarksDialog.ShowDialog method.

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

---

### Description

The DeleteBookmarksDialog class implements a 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 [WPF.DeleteBookmarksDialog.DialogItem](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/deletebookmarksdialog/dialogitem-enumeration/llms-full.txt) enumeration. The `FrameworkElement.FindName` method can be used to get a certain item and manipulate, move or delete it. The WPF.DeleteBookmarksDialog is a modal dialog box which must be shown with the `WPF.DeleteBookmarksDialog.ShowDialog` method.

### Syntax

```csharp
public class DeleteBookmarksDialog : Window, IComponentConnector
```

```vbnet
Public Class DeleteBookmarksDialog
    Inherits Window
    Implements IComponentConnector
```

### 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 allows transparency setting for a document workflow.

```csharp
TXTextControl.WPF.DeleteBookmarksDialog deleteBookmarksDialog = new(new TXTextControl.WPF.TextControl());
deleteBookmarksDialog.AllowsTransparency = true;
```

```vbnet
Dim deleteBookmarksDialog As New TXTextControl.WPF.DeleteBookmarksDialog(New TXTextControl.WPF.TextControl())
deleteBookmarksDialog.AllowsTransparency = True
```

---

## In This Section

- [DeleteBookmarksDialog Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/deletebookmarksdialog/constructor/llms-full.txt): Creates a DeleteBookmarksDialog object for the specified WPF.TextControl.
- [DeleteBookmarksDialog.DialogItem Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/deletebookmarksdialog/dialogitem-enumeration/llms-full.txt): Each DialogItem represents an item in a WPF.DeleteBookmarksDialog dialog box. The corresponding string of a DialogItem is the same as the item's Name property. The string can be used with the FrameworkElement.FindName method to get the item and manipulate, move or delete it.

---

## Nearby

- **Previous:** [CommentsDialog.DialogItem Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/commentsdialog/dialogitem-enumeration/llms-full.txt)
- **Next:** [DeleteBookmarksDialog Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/deletebookmarksdialog/constructor/llms-full.txt)
