RibbonItem Enumeration
- Namespace
TXTextControl
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WinForms. SDK
- Assembly
TXTextControl.Windows. Forms. dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WinForms. SDK TXTextControl.from the setup.Windows. Forms. dll
Description
Each RibbonItem represents an item in a TextMiniToolbar. The corresponding string of a RibbonItem is the same as the item's Name property. The RibbonItem enumeration can be used with the FindItem method to get an item and manipulate it.
Syntax
public enum TextMiniToolbar.RibbonItemPublic Enum TextMiniToolbar.RibbonItemMembers
| Member | Value | Description |
|---|---|---|
| TXITEM_FontGroup | 0 | Identifies the Font group of the TextMiniToolbar. |
| TXITEM_FontFamily | 1 | Identifies the FontFamily combobox of the TextMiniToolbar. |
| TXITEM_FontSize | 2 | Identifies the FontSize combobox of the TextMiniToolbar. |
| TXITEM_IncreaseFont | 3 | Identifies the IncreaseFont button of the TextMiniToolbar. |
| TXITEM_DecreaseFont | 4 | Identifies the DecreaseFont button of the TextMiniToolbar. |
| TXITEM_BulletedList | 5 | Identifies the BulletedList button of the TextMiniToolbar. |
| TXITEM_NumberedList | 6 | Identifies the NumberedList button of the TextMiniToolbar. |
| TXITEM_StructuredList | 7 | Identifies the StructuredList button of the TextMiniToolbar. |
| TXITEM_Bold | 8 | Identifies the Bold button of the TextMiniToolbar. |
| TXITEM_Italic | 9 | Identifies the Italic button of the TextMiniToolbar. |
| TXITEM_Underline | 10 | Identifies the Underline button of the TextMiniToolbar. |
| TXITEM_TextBackColor | 11 | Identifies the TextBackColor button of the TextMiniToolbar. |
| TXITEM_TextColor | 12 | Identifies the TextColor button of the TextMiniToolbar. |
| TXITEM_LeftAligned | 13 | Identifies the LeftAligned button of the TextMiniToolbar. |
| TXITEM_Centered | 14 | Identifies the Centered button of the TextMiniToolbar. |
| TXITEM_RightAligned | 15 | Identifies the RightAligned button of the TextMiniToolbar. |
| TXITEM_Justified | 16 | Identifies the Justified button of the TextMiniToolbar. |
| TXITEM_ClearFormatting | 17 | Identifies the ClearFormatting button of the TextMiniToolbar. |
| TXITEM_StylesGroup | 18 | Identifies the Styles group of the TextMiniToolbar. |
| TXITEM_StyleName | 19 | Identifies the StyleName gallery of the TextMiniToolbar. |
| TXITEM_TableLayoutGroup | 20 | Identifies the TableLayout group of the TextMiniToolbar. |
| TXITEM_TableSelect | 21 | Identifies the TableSelect button of the TextMiniToolbar. |
| TXITEM_TableMergeCells | 22 | Identifies the TableMergeCells button of the TextMiniToolbar. |
| TXITEM_TableDelete | 23 | Identifies the TableDelete button of the TextMiniToolbar. |
| TXITEM_TableInsert | 24 | Identifies the TableInsert button of the TextMiniToolbar. |
| TXITEM_TableSplitCells | 25 | Identifies the TableSplitCells button of the TextMiniToolbar. |
Examples
The following example selects the TXITEM_Font Group value from the Ribbon Item enumeration and uses it as a documented workflow choice.
TextMiniToolbar.RibbonItem value = TextMiniToolbar.RibbonItem.TXITEM_FontGroup;
Console.WriteLine($"Using Ribbon Item: {value}");Dim value As TextMiniToolbar.RibbonItem = TextMiniToolbar.RibbonItem.TXITEM_FontGroup
Console.WriteLine($"Using Ribbon Item: {value}")