TXTextControl.WPF.BookmarkDialog Class

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.

Introduced: 22.0.


public class BookmarkDialog : System.Windows.Window
[Visual Basic]
Public Class BookmarkDialog
  Inherits System.Windows.Window


Constructor Description
BookmarkDialog Creates a BookmarkDialog object for the specified WPF.TextControl.


Enumeration Description
DialogItem Each DialogItem represents an item in a WPF.BookmarkDialog dialog box.


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

BookmarkDialog dlg = new BookmarkDialog(textControl1);
[Visual Basic]
Dim dlg As New BookmarkDialog(textControl1)

See Also