TXTextControl.GotoDialog.FindItem Method

Finds a control that has the provided identifier name.

Syntax

[C#]
public System.Windows.Forms.Control FindItem(GotoDialog.DialogItem dialogItem);
[Visual Basic]
Public Sub FindItem(ByVal dialogItem  As GotoDialog.DialogItem) As System.Windows.Forms.Control
Member Description
dialogItem

The name of the requested control represented by an enum of type GotoDialog.DialogItem.

Return Value

The requested control if found. Otherwise null.

Example

The following example removes the 'Table' item from the GotoDialog's 'Go to what' list:

[C#]
ListBox ctrl = (ListBox)dlg.FindItem(TXTextControl.GotoDialog.DialogItem.TXITEM_GotoList);
ctrl.Items.RemoveAt(3);
[Visual Basic]
Dim ctrl As ListBox = DirectCast(dlg.FindItem(TXTextControl.GotoDialog.DialogItem.TXITEM_GotoList), ListBox)
ctrl.Items.RemoveAt(3)

See Also