# Sidebar.StylesItem Enumeration

> 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.

- **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.StylesItem Enumeration
- **597 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/stylesitem-enumeration/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/stylesitem-enumeration/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/stylesitem-enumeration/llms-full.txt

---

### Description

Each StylesItem represents an item in a [predefined Styles](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 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

```csharp
public enum Sidebar.StylesItem
```

```vbnet
Public Enum Sidebar.StylesItem
```

### Members

| 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.

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

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

---

## Nearby

- **Previous:** [Sidebar.SidebarDialogStyle Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/sidebardialogstyle-enumeration/llms-full.txt)
- **Next:** [Sidebar.Text Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/text-property/llms-full.txt)
