Finds a control that has the provided identifier name.

FindItem(DeleteBookmarksDialog.DialogItem)

public System.Windows.Forms.Control FindItem(DeleteBookmarksDialog.DialogItem dialogItem);

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);