# 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 FrameworkElement.FindName method to get the item and manipulate it.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Enumeration
- **Introduced:** 26.0
- **Namespace:** `TXTextControl.WPF`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.WPF.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.WPF.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.WPF > Sidebar.FindAndReplaceItem Enumeration
- **1175 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/findandreplaceitem-enumeration/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/findandreplaceitem-enumeration/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/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-wpf/reference/txtextcontrol-wpf/sidebar/contentlayout-property/llms-full.txt) [control](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/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 `FrameworkElement.FindName` 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.WPF.Sidebar.FindAndReplaceItem value = TXTextControl.WPF.Sidebar.FindAndReplaceItem.TXITEM_FindWhatLabel;
Console.WriteLine($"Using Find And Replace Item: {value}");
```

```vbnet
Dim value As TXTextControl.WPF.Sidebar.FindAndReplaceItem = TXTextControl.WPF.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-wpf/reference/txtextcontrol-wpf/sidebar/fieldnavigatoritem-enumeration/llms-full.txt)
- **Next:** [Sidebar.GotoItem Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/gotoitem-enumeration/llms-full.txt)
