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

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Enumeration
- **Introduced:** 26.0
- **Namespace:** `TXTextControl.Windows.Forms`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.Windows.Forms.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Windows.Forms.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl.Windows.Forms > Sidebar.StylesItem Enumeration
- **639 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/sidebar/stylesitem-enumeration/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/sidebar/stylesitem-enumeration/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/sidebar/stylesitem-enumeration/llms-full.txt

---

### Description

Each StylesItem represents an item in a [predefined Styles](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/sidebar/contentlayout-property/llms-full.txt) [control](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/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 [Sidebar.FindItem](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/sidebar/finditem-method/llms-full.txt) 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.Windows.Forms.Sidebar.StylesItem value = TXTextControl.Windows.Forms.Sidebar.StylesItem.TXITEM_Styles;
Console.WriteLine($"Using Styles Item: {value}");
```

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

---

## Nearby

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