StylesItem 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 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.StylesItemPublic Enum Sidebar.StylesItemMembers
| Member | Value | Description |
|---|---|---|
| TXITEM_Styles | 0 | Identifies the styles overview. |
| TXITEM_ShowPreview | 1 | Identifies the Show Preview check box. |
| TXITEM_SortAlphabetical | 2 | Identifies the Sort Alphabetical check box. |
| TXITEM_ManageStyles | 3 | Identifies 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}");Dim value As TXTextControl.WPF.Sidebar.StylesItem = TXTextControl.WPF.Sidebar.StylesItem.TXITEM_Styles
Console.WriteLine($"Using Styles Item: {value}")