TX Text Control .NET for Windows Forms

FindItem Method

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

Description

Finds a control inside a predefined content control that has the provided identifier name.

Syntax

FindItem(Sidebar.ConditionalInstructionsItem)

Finds a control inside a predefined conditional instructions panel that has the Sidebar.ConditionalInstructionsItem identifier name.

public Control FindItem(Sidebar.ConditionalInstructionsItem item);
ParameterDescription
item

The name of the requested control represented by a specific enum.

FindItem(Sidebar.DocumentSettingsItem)

Finds a control inside a predefined document settings panel that has the Sidebar.DocumentSettingsItem identifier name.

public Control FindItem(Sidebar.DocumentSettingsItem item);
ParameterDescription
item

The name of the requested control represented by a specific enum.

FindItem(Sidebar.FieldNavigatorItem)

Finds a control inside a predefined field navigator that has the Sidebar.FieldNavigatorItem identifier name.

public Control FindItem(Sidebar.FieldNavigatorItem item);
ParameterDescription
item

The name of the requested control represented by a specific enum.

FindItem(Sidebar.FindAndReplaceItem)

Finds a control inside a predefined find or replace panel that has the Sidebar.FindAndReplaceItem identifier name.

public Control FindItem(Sidebar.FindAndReplaceItem item);
ParameterDescription
item

The name of the requested control represented by a specific enum.

FindItem(Sidebar.GotoItem)

Finds a control inside a predefined go to panel that has the Sidebar.GotoItem identifier name.

public Control FindItem(Sidebar.GotoItem item);
ParameterDescription
item

The name of the requested control represented by a specific enum.

FindItem(Sidebar.StylesItem)

Finds a control inside a predefined go to panel that has the Sidebar.StylesItem identifier name.

public Control FindItem(Sidebar.StylesItem item);
ParameterDescription
item

The name of the requested control represented by a specific enum.

FindItem(Sidebar.TrackedChangesItem)

Finds a control inside a predefined tracked changes overview that has the Sidebar.TrackedChangesItem identifier name.

public Control FindItem(Sidebar.TrackedChangesItem item);
ParameterDescription
item

The name of the requested control represented by a specific enum.

FindItem(Sidebar.AboutItem)

public Control FindItem(Sidebar.AboutItem item);

Return Value

The requested control if found. Otherwise null.

Examples

The following example finds a matching item in the sidebar.

System.Windows.Forms.Control result = sidebar.FindItem(TXTextControl.Windows.Forms.Sidebar.AboutItem.TXITEM_AboutViewer);
result?.Select();