Finds a control that has the provided identifier name.

FindItem(HyperlinkDialog.DialogItem)

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

Parameters

Parameter Description
dialogItem The name of the requested control represented by an enum of type HyperlinkDialog.DialogItem.

Return Value

The requested control if found. Otherwise null.

Examples

The following example removes the 'Go To' button from the HyperlinkDialog object.

Control ctrl = dlg.FindItem(TXTextControl.HyperlinkDialog.DialogItem.TXITEM_DeleteHyperlink);

ctrl.Parent.Controls.Remove(ctrl);