Finds a control that has the provided identifier name.

FindItem(DeleteBookmarksDialog.DialogItem)

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

Parameters

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

Return Value

The requested control if found. Otherwise null.

Examples

The following example removes the 'Go To' button from the DeleteBookmarksDialog object.

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