ButtonBarItem 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 ButtonBarItem represents an item in a WPF.ButtonBar. The corresponding string of a ButtonBarItem is the same as the item's Name property. The string can be used with the FrameworkElement.FindName method to get the item and manipulate, move or delete it.
Syntax
public enum ButtonBar.ButtonBarItemPublic Enum ButtonBar.ButtonBarItemMembers
| Member | Value | Description |
|---|---|---|
| TXITEM_StyleName | 0 | Identifies the StyleName combobox. |
| TXITEM_FontFamily | 1 | Identifies the FontFamily combobox. |
| TXITEM_FontSize | 2 | Identifies the FontSize combobox. |
| TXITEM_ZoomFactor | 3 | Identifies the ZoomFactor combobox. |
| TXITEM_Bold | 4 | Identifies the Bold button. |
| TXITEM_Italic | 5 | Identifies the Italic button. |
| TXITEM_Underline | 6 | Identifies the Underline button. |
| TXITEM_Strikeout | 7 | Identifies the Strikeout button. |
| TXITEM_Subscript | 8 | Identifies the Subscript button. |
| TXITEM_Superscript | 9 | Identifies the Superscript button. |
| TXITEM_IncreaseFont | 10 | Identifies the IncreaseFont button. |
| TXITEM_DecreaseFont | 11 | Identifies the DecreaseFont button. |
| TXITEM_LeftAligned | 12 | Identifies the LeftAligned button. |
| TXITEM_Centered | 13 | Identifies the Centered button. |
| TXITEM_RightAligned | 14 | Identifies the RightAligned button. |
| TXITEM_Justified | 15 | Identifies the Justified button. |
| TXITEM_DecreaseIndent | 16 | Identifies the DecreaseIndent button. |
| TXITEM_IncreaseIndent | 17 | Identifies the IncreaseIndent button. |
| TXITEM_LeftToRight | 18 | Identifies the LeftToRight button. |
| TXITEM_RightToLeft | 19 | Identifies the RightToLeft button. |
| TXITEM_BulletedList | 20 | Identifies the BulletedList button. |
| TXITEM_NumberedList | 21 | Identifies the NumberedList button. |
| TXITEM_StructuredList | 22 | Identifies the StructuredList button. |
| TXITEM_ControlChars | 23 | Identifies the ControlChars button. |
Examples
The following example selects the TXITEM_Style Name value from the Button Bar Item enumeration and uses it as a documented workflow choice.
TXTextControl.WPF.ButtonBar.ButtonBarItem value = TXTextControl.WPF.ButtonBar.ButtonBarItem.TXITEM_StyleName;
Console.WriteLine($"Using Button Bar Item: {value}");Dim value As TXTextControl.WPF.ButtonBar.ButtonBarItem = TXTextControl.WPF.ButtonBar.ButtonBarItem.TXITEM_StyleName
Console.WriteLine($"Using Button Bar Item: {value}")