FindAndReplaceItem Enumeration
- Namespace
TXTextControl.WPF
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WPF. SDK
- Assembly
TXTextControl.WPF. dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WPF. SDK TXTextControl.from the setup.WPF. dll
Description
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.
Syntax
public enum Sidebar.FindAndReplaceItemPublic Enum Sidebar.FindAndReplaceItemMembers
| 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.
TXTextControl.WPF.Sidebar.FindAndReplaceItem value = TXTextControl.WPF.Sidebar.FindAndReplaceItem.TXITEM_FindWhatLabel;
Console.WriteLine($"Using Find And Replace Item: {value}");Dim value As TXTextControl.WPF.Sidebar.FindAndReplaceItem = TXTextControl.WPF.Sidebar.FindAndReplaceItem.TXITEM_FindWhatLabel
Console.WriteLine($"Using Find And Replace Item: {value}")