Finds a control that has the provided identifier name.
public System.Windows.Forms.Control FindItem(HyperlinkDialog.DialogItem dialogItem);
Public Sub FindItem(ByVal dialogItem As HyperlinkDialog.DialogItem) As System.Windows.Forms.Control
Parameter | Description |
---|---|
dialog |
The name of the requested control represented by an enum of type Hyperlink |
The requested control if found. Otherwise null.
The following example removes the 'Go To' button from the Hyperlink
Control ctrl = dlg.FindItem(TXTextControl.HyperlinkDialog.DialogItem.TXITEM_DeleteHyperlink);
ctrl.Parent.Controls.Remove(ctrl);
Dim ctrl As Control = dlg.FindItem(TXTextControl.HyperlinkDialog.DialogItem.TXITEM_DeleteHyperlink)
ctrl.Parent.Controls.Remove(ctrl)