Finds a control that has the provided identifier name.

FindItem(BookmarkDialog.DialogItem)

public System.Windows.Forms.Control FindItem(BookmarkDialog.DialogItem dialogItem);
Public Sub FindItem(ByVal dialogItem  As BookmarkDialog.DialogItem) As System.Windows.Forms.Control

Parameters

Parameter Description
dialogItem The name of the requested control represented by an enum of type BookmarkDialog.DialogItem.

Return Value

The requested control if found. Otherwise null.

Examples

The following example removes the 'Can be deleted during editing' check box from the BookmarkDialog object:

TXTextControl.BookmarkDialog dlg = new TXTextControl.BookmarkDialog(textControl1);
System.Windows.Forms.Control ctrl = dlg.FindItem(TXTextControl.BookmarkDialog.DialogItem.TXITEM_Deletable);
ctrl.Parent.Controls.Remove(ctrl);
Dim dlg As TXTextControl.BookmarkDialog = New TXTextControl.BookmarkDialog(TextControl1)
Dim ctrl As System.Windows.Forms.Control = dlg.FindItem(TXTextControl.BookmarkDialog.DialogItem.TXITEM_Deletable)
ctrl.Parent.Controls.Remove(ctrl)