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(TrackedChangesDialog.DialogItem dialogItem);Public Function FindItem(dialogItem As TrackedChangesDialog.DialogItem) As ControlParameters
| Parameter | Description |
|---|---|
| dialogItem | The name of the requested control represented by an enum of type TrackedChangesDialog.DialogItem. |
Return Value
The requested control if found. Otherwise null.
Examples
The following example finds a matching item in the tracked changes dialog.
System.Windows.Forms.Control result = trackedChangesDialog.FindItem(TrackedChangesDialog.DialogItem.TXITEM_TrackedChangesCount);
result?.Select();Dim result As System.Windows.Forms.Control = trackedChangesDialog.FindItem(TrackedChangesDialog.DialogItem.TXITEM_TrackedChangesCount)
If result IsNot Nothing Then result.Select()