TXTextControl.BookmarkDialog.FindItem Method

Finds a control that has the provided identifier name.

Syntax

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

Example

The following example removes the 'Can be deleted during editing' check box from the BookmarkDialog object:

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

See Also