TX Text Control .NET for Windows Forms

FindItem Method

Method|Introduced in 25.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

Description

Finds a control that has the provided ObjectMiniToolbar.RibbonItem identifier.

Syntax

public Control FindItem(ObjectMiniToolbar.RibbonItem ribbonItem);

Parameters

ParameterDescription
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 object mini toolbar.

System.Windows.Forms.Control result = objectMiniToolbar.FindItem(ObjectMiniToolbar.RibbonItem.TXITEM_TextFrame_BordersandBackgroundGroup);
result?.Select();