TXTextControl.DeleteBookmarksDialog.FindItem Method

Finds a control that has the provided identifier name.

Syntax

[C#]
public System.Windows.Forms.Control FindItem(DeleteBookmarksDialog.DialogItem dialogItem);
[Visual Basic]
Public Sub FindItem(ByVal dialogItem  As DeleteBookmarksDialog.DialogItem) As System.Windows.Forms.Control
Member 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.

Example

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

[C#]
Control ctrl = dlg.FindItem(TXTextControl.DeleteBookmarksDialog.DialogItem.TXITEM_GotoBookmark);
ctrl.Parent.Controls.Remove(ctrl);
[Visual Basic]
Dim ctrl As Control = dlg.FindItem(TXTextControl.DeleteBookmarksDialog.DialogItem.TXITEM_GotoBookmark)
ctrl.Parent.Controls.Remove(ctrl)

See Also