FindItem Method
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
Description
Finds a control that has the provided identifier name.
Syntax
public Control FindItem(CommentsDialog.DialogItem dialogItem);Public Function FindItem(dialogItem As CommentsDialog.DialogItem) As ControlParameters
| Parameter | Description |
|---|---|
| dialogItem | The name of the requested control represented by an enum of type CommentsDialog.DialogItem. |
Return Value
The requested control if found. Otherwise null.
Examples
The following example finds a matching item in the comments dialog.
System.Windows.Forms.Control result = commentsDialog.FindItem(CommentsDialog.DialogItem.TXITEM_CommentsCount);
result?.Select();Dim result As System.Windows.Forms.Control = commentsDialog.FindItem(CommentsDialog.DialogItem.TXITEM_CommentsCount)
If result IsNot Nothing Then result.Select()