TX Text Control .NET for Windows Forms

FindAndReplaceItem Enumeration

Enumeration|Introduced in 26.0
Namespace
TXTextControl.Windows.Forms
Package
TXTextControl.TextControl.WinForms.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.Windows.Forms.dll
Install
dotnet add package TXTextControl.TextControl.WinForms.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.Windows.Forms.dll from the setup.

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 Sidebar.FindItem method to get the item and manipulate it.

Syntax

public enum Sidebar.FindAndReplaceItem

Members

MemberValueDescription
TXITEM_FindWhatLabel0Identifies the Find What label.
TXITEM_FindWhatTextBox1Identifies the Find What text box.
TXITEM_ReplaceWithLabel2Identifies the Replace With label (only with Replace content layout).
TXITEM_ReplaceWithTextBox3Identifies the Replace With text box (only with Replace content layout).
TXITEM_FindOptionsToggleItem4Identifies the Find Options toggle item.
TXITEM_FindOptionsLabel5Identifies the Find Options label.
TXITEM_FindOptionsSeparator6Identifies the Find Options separator.
TXITEM_MatchCase7Identifies the Match Case check box.
TXITEM_MatchWholeWord8Identifies the Match Whole Word check box.
TXITEM_SearchUp9Identifies the Search Up control.
TXITEM_SearchInMainText10Identifies the Search In Main Text check box.
TXITEM_SearchInFootnotes11Identifies the Search In Footnotes check box.
TXITEM_SearchInTextFrames12Identifies the Search In Text Frames check box.
TXITEM_SearchInHeaderFooters13Identifies the Search In Header Footers check box.
TXITEM_FindNext14Identifies the Find Next button.
TXITEM_Replace15Identifies the Replace button (only with Replace content layout).
TXITEM_ReplaceAll16Identifies the Replace All button (only with Replace content layout).
TXITEM_Cancel17Identifies 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.Windows.Forms.Sidebar.FindAndReplaceItem value = TXTextControl.Windows.Forms.Sidebar.FindAndReplaceItem.TXITEM_FindWhatLabel;
Console.WriteLine($"Using Find And Replace Item: {value}");