FindItem Method
- Namespace
TXTextControl.Windows. Forms
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
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);Public Function FindItem(item As Sidebar.ConditionalInstructionsItem) As Control| Parameter | Description |
|---|---|
| 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);Public Function FindItem(item As Sidebar.DocumentSettingsItem) As Control| Parameter | Description |
|---|---|
| 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);Public Function FindItem(item As Sidebar.FieldNavigatorItem) As Control| Parameter | Description |
|---|---|
| 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);Public Function FindItem(item As Sidebar.FindAndReplaceItem) As Control| Parameter | Description |
|---|---|
| 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);Public Function FindItem(item As Sidebar.GotoItem) As Control| Parameter | Description |
|---|---|
| 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);Public Function FindItem(item As Sidebar.StylesItem) As Control| Parameter | Description |
|---|---|
| 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);Public Function FindItem(item As Sidebar.TrackedChangesItem) As Control| Parameter | Description |
|---|---|
| item | The name of the requested control represented by a specific enum. |
FindItem(Sidebar.AboutItem)
public Control FindItem(Sidebar.AboutItem item);Public Function FindItem(item As Sidebar.AboutItem) As ControlReturn 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();Dim result As System.Windows.Forms.Control = sidebar.FindItem(TXTextControl.Windows.Forms.Sidebar.AboutItem.TXITEM_AboutViewer)
If result IsNot Nothing Then result.Select()