BookmarkDialog Class
- Namespace
TXTextControl.WPF
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WPF. SDK
- Assembly
TXTextControl.WPF. dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WPF. SDK TXTextControl.from the setup.WPF. dll
- Inherits
- Window
- Bookmark
Dialog
- Implements
- IComponent
Connector
Description
The WPF.BookmarkDialog class implements a dialog box to insert a DocumentTarget at the current input position. If there is a target at the current input position, the name of the target is shown and can be edited. The dialog box can only be opened, if either DocumentTargetCollection.CanAdd returns true or if DocumentTargetCollection.GetItem() does not return null. Otherwise, an exception occurs. Each item of the dialog box has a name, available through its Name property, which corresponds with a member of the WPF.BookmarkDialog.DialogItem enumeration. The FrameworkElement.FindName method can be used to get a certain item and manipulate, move or delete it. The WPF.BookmarkDialog is a modal dialog box which must be shown with the WPF.BookmarkDialog.ShowDialog method.
Syntax
public class BookmarkDialog : Window, IComponentConnectorPublic Class BookmarkDialog
Inherits Window
Implements IComponentConnectorExamples
The following example creates an BookmarkDialog object and shows the dialog box:
BookmarkDialog dlg = new BookmarkDialog(textControl1);
dlg.ShowDialog();Dim dlg As New BookmarkDialog(textControl1)
dlg.ShowDialog()The following example creates a Bookmark Dialog instance and configures its allows transparency setting for a document workflow.
TXTextControl.WPF.BookmarkDialog bookmarkDialog = new(new TXTextControl.WPF.TextControl());
bookmarkDialog.AllowsTransparency = true;Dim bookmarkDialog As New TXTextControl.WPF.BookmarkDialog(New TXTextControl.WPF.TextControl())
bookmarkDialog.AllowsTransparency = TrueMembers
Constructors
| Constructor | Description |
|---|---|
| BookmarkDialog | Creates a BookmarkDialog object for the specified WPF.TextControl. |
Methods
| Method | Description |
|---|---|
| InitializeComponent | Not described in the reference. public void InitializeComponent(); |
Enumerations
| Enumeration | Description |
|---|---|
| DialogItem | Each DialogItem represents an item in a WPF.BookmarkDialog 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. |