Finds a control that has the provided identifier name.

FindItem(BookmarkDialog.DialogItem)

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

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