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 ObjectMiniToolbar. 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 ObjectMiniToolbar.RibbonItemPublic Enum ObjectMiniToolbar.RibbonItemMembers
| Member | Value | Description |
|---|---|---|
| TXITEM_TextFrame_BordersandBackgroundGroup | 0 | Identifies the BordersandBackground group for the selected text frame. |
| TXITEM_TextFrameBackColor | 1 | Identifies the Back Color button for the selected text frame. |
| TXITEM_TextFrameTransparency | 3 | Identifies the Transparency button for the selected text frame. |
| TXITEM_TextFrameLineWidth | 2 | Identifies the Line Width button for the selected text frame. |
| TXITEM_TextFrameBorderColor | 4 | Identifies the Border Color button for the selected text frame. |
| TXITEM_Drawing_BordersandBackgroundGroup | 5 | Identifies the BordersandBackground group for the selected drawing frame. |
| TXITEM_DrawingBackColor | 6 | Identifies the Back Color button for the selected drawing frame. |
| TXITEM_DrawingTransparency | 7 | Identifies the Transparency button for the selected drawing frame. |
| TXITEM_DrawingLineColor | 8 | Identifies the Line Color button for the selected drawing frame. |
| TXITEM_DrawingLineWidth | 9 | Identifies the Line Width button for the selected drawing frame. |
| TXITEM_Barcode_ColorsAndAlignmentGroup | 10 | Identifies the ColorsAndAlignment group for the selected barcode frame. |
| TXITEM_BarcodeBackColor | 11 | Identifies the Back Color button for the selected barcode frame. |
| TXITEM_BarcodeForeColor | 12 | Identifies the Fore Color button for the selected barcode frame. |
| TXITEM_BarcodeTransparency | 13 | Identifies the Transparency button for the selected barcode frame. |
Examples
The following example selects the TXITEM_Text Frame_Bordersand Background Group value from the Ribbon Item enumeration and uses it as a documented workflow choice.
ObjectMiniToolbar.RibbonItem value = ObjectMiniToolbar.RibbonItem.TXITEM_TextFrame_BordersandBackgroundGroup;
Console.WriteLine($"Using Ribbon Item: {value}");Dim value As ObjectMiniToolbar.RibbonItem = ObjectMiniToolbar.RibbonItem.TXITEM_TextFrame_BordersandBackgroundGroup
Console.WriteLine($"Using Ribbon Item: {value}")