TX Text Control .NET for WPF

StylesItem Enumeration

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

Description

Each StylesItem represents an item in a predefined Styles control. The corresponding string of a StylesItem is the same as the item's Name property. The StylesItem enumeration can be used with the FrameworkElement.FindName method to get the item and manipulate it.

Syntax

public enum Sidebar.StylesItem

Members

MemberValueDescription
TXITEM_Styles0Identifies the styles overview.
TXITEM_ShowPreview1Identifies the Show Preview check box.
TXITEM_SortAlphabetical2Identifies the Sort Alphabetical check box.
TXITEM_ManageStyles3Identifies the Manage Styles button.

Examples

The following example selects the TXITEM_Styles value from the Styles Item enumeration and uses it as a documented workflow choice.

TXTextControl.WPF.Sidebar.StylesItem value = TXTextControl.WPF.Sidebar.StylesItem.TXITEM_Styles;
Console.WriteLine($"Using Styles Item: {value}");