# Sidebar.FindAndReplaceItem Enumeration

> Each FieldNavigatorItem represents an item in a predefined Find or Replace control. The corresponding string of a FindAndReplaceItem is the same as the item's Name property. The FindAndReplaceItem enumeration can be used with the Sidebar.FindItem method to get the item and manipulate it.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Enumeration
- **Introduced:** 26.0
- **Namespace:** `TXTextControl.Windows.Forms`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.Windows.Forms.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Windows.Forms.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl.Windows.Forms > Sidebar.FindAndReplaceItem Enumeration
- **1218 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/sidebar/findandreplaceitem-enumeration/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/sidebar/findandreplaceitem-enumeration/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/sidebar/findandreplaceitem-enumeration/llms-full.txt

---

### Description

Each FieldNavigatorItem represents an item in a [predefined Find or Replace](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/sidebar/contentlayout-property/llms-full.txt) [control](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/sidebar/content-property/llms-full.txt). The corresponding string of a FindAndReplaceItem is the same as the item's Name property. The FindAndReplaceItem enumeration can be used with the [Sidebar.FindItem](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/sidebar/finditem-method/llms-full.txt) method to get the item and manipulate it.

### Syntax

```csharp
public enum Sidebar.FindAndReplaceItem
```

```vbnet
Public Enum Sidebar.FindAndReplaceItem
```

### Members

| Member | Value | Description |
|---|---|---|
| TXITEM\_FindWhatLabel | 0 | Identifies the Find What label. |
| TXITEM\_FindWhatTextBox | 1 | Identifies the Find What text box. |
| TXITEM\_ReplaceWithLabel | 2 | Identifies the Replace With label (only with Replace content layout). |
| TXITEM\_ReplaceWithTextBox | 3 | Identifies the Replace With text box (only with Replace content layout). |
| TXITEM\_FindOptionsToggleItem | 4 | Identifies the Find Options toggle item. |
| TXITEM\_FindOptionsLabel | 5 | Identifies the Find Options label. |
| TXITEM\_FindOptionsSeparator | 6 | Identifies the Find Options separator. |
| TXITEM\_MatchCase | 7 | Identifies the Match Case check box. |
| TXITEM\_MatchWholeWord | 8 | Identifies the Match Whole Word check box. |
| TXITEM\_SearchUp | 9 | Identifies the Search Up control. |
| TXITEM\_SearchInMainText | 10 | Identifies the Search In Main Text check box. |
| TXITEM\_SearchInFootnotes | 11 | Identifies the Search In Footnotes check box. |
| TXITEM\_SearchInTextFrames | 12 | Identifies the Search In Text Frames check box. |
| TXITEM\_SearchInHeaderFooters | 13 | Identifies the Search In Header Footers check box. |
| TXITEM\_FindNext | 14 | Identifies the Find Next button. |
| TXITEM\_Replace | 15 | Identifies the Replace button (only with Replace content layout). |
| TXITEM\_ReplaceAll | 16 | Identifies the Replace All button (only with Replace content layout). |
| TXITEM\_Cancel | 17 | Identifies the Cancel button. |

### Examples

The following example selects the TXITEM\_Find What Label value from the Find And Replace Item enumeration and uses it as a documented workflow choice.

```csharp
TXTextControl.Windows.Forms.Sidebar.FindAndReplaceItem value = TXTextControl.Windows.Forms.Sidebar.FindAndReplaceItem.TXITEM_FindWhatLabel;
Console.WriteLine($"Using Find And Replace Item: {value}");
```

```vbnet
Dim value As TXTextControl.Windows.Forms.Sidebar.FindAndReplaceItem = TXTextControl.Windows.Forms.Sidebar.FindAndReplaceItem.TXITEM_FindWhatLabel
Console.WriteLine($"Using Find And Replace Item: {value}")
```

---

## Nearby

- **Previous:** [Sidebar.FieldNavigatorItem Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/sidebar/fieldnavigatoritem-enumeration/llms-full.txt)
- **Next:** [Sidebar.FindItem Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/sidebar/finditem-method/llms-full.txt)
