FindItem Method
- Namespace
TXTextControl.Windows. Forms. Ribbon
- 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 RibbonFormulaTab.RibbonItem identifier.
Syntax
public Control FindItem(RibbonFormulaTab.RibbonItem ribbonItem);Public Function FindItem(ribbonItem As RibbonFormulaTab.RibbonItem) As ControlParameters
| Parameter | Description |
|---|---|
| ribbonItem | Specifies the identifier of the requested control. |
Return Value
The requested control, if found. Otherwise null.
Examples
The following example finds a matching item in the ribbon formula tab.
System.Windows.Forms.Control result = ribbonFormulaTab.FindItem(TXTextControl.Windows.Forms.Ribbon.RibbonFormulaTab.RibbonItem.TXITEM_FormulaGroup);
result?.Select();Dim result As System.Windows.Forms.Control = ribbonFormulaTab.FindItem(TXTextControl.Windows.Forms.Ribbon.RibbonFormulaTab.RibbonItem.TXITEM_FormulaGroup)
If result IsNot Nothing Then result.Select()