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

Syntax

public class BookmarkDialog : System.Windows.Forms.Form
Public Class BookmarkDialog
  Inherits System.Windows.Forms.Form

Introduced: X13.

Examples

The following examples creates an BookmarkDialog object and shows the dialog box.

TXTextControl.BookmarkDialog dlg = new TXTextControl.BookmarkDialog(textControl1);
dlg.ShowDialog();
Dim dlg As TXTextControl.BookmarkDialog = New TXTextControl.BookmarkDialog(TextControl1)
dlg.ShowDialog()

Constructors

Constructor Description
BookmarkDialog Creates a BookmarkDialog object for the specified Windows Forms TextControl.

Enumerations

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

Methods

Method Description
FindItem Finds a control that has the provided identifier name.