Finds a control that has the provided identifier name.
public System.Windows.Forms.Control FindItem(BookmarkDialog.DialogItem dialogItem);
Public Sub FindItem(ByVal dialogItem As BookmarkDialog.DialogItem) As System.Windows.Forms.Control
Parameter | Description |
---|---|
dialog |
The name of the requested control represented by an enum of type Bookmark |
The requested control if found. Otherwise null.
The following example removes the 'Can be deleted during editing' check box from the Bookmark
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)