RibbonDropDownItem Enumeration
- Namespace
TXTextControl.Windows. Forms. Ribbon
- 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 RibbonDropDownItem represents a drop-down item in the RibbonPageLayoutTab. The corresponding string of a RibbonDropDownItem is the same as the item's Name property. The RibbonDropDownItem enumeration can be used with the ResourceProvider class that provides static methods to receive bitmaps or strings which are associated with the corresponding ribbon drop-down item.
Syntax
public enum RibbonPageLayoutTab.RibbonDropDownItemPublic Enum RibbonPageLayoutTab.RibbonDropDownItemMembers
| Member | Value | Description |
|---|---|---|
| TXITEM_Orientation_Portrait | 0 | Identifies the TXITEM_Orientation_Portrait drop-down item inside the TXITEM_Orientation's drop-down menu. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding SmallIcon and Text resources. |
| TXITEM_Orientation_Landscape | 1 | Identifies the TXITEM_Orientation_Landscape drop-down item inside the TXITEM_Orientation's drop-down menu. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding SmallIcon and Text resources. |
| TXITEM_Columns_One | 2 | Identifies the TXITEM_Columns_One drop-down item inside the TXITEM_Columns's drop-down menu. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding SmallIcon and Text resources. |
| TXITEM_Columns_Two | 3 | Identifies the TXITEM_Columns_Two drop-down item inside the TXITEM_Columns's drop-down menu. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding SmallIcon and Text resources. |
| TXITEM_Columns_Three | 4 | Identifies the TXITEM_Columns_Three drop-down item inside the TXITEM_Columns's drop-down menu. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding SmallIcon and Text resources. |
| TXITEM_Columns_MoreColumns | 5 | Identifies the TXITEM_Columns_MoreColumns drop-down item inside the TXITEM_Columns's drop-down menu. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding SmallIcon and Text resources. |
| TXITEM_Breaks_PageBreaks | 6 | Identifies the TXITEM_Breaks_PageBreaks drop-down item inside the TXITEM_Breaks's drop-down menu. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding Text resource. |
| TXITEM_Breaks_Page | 7 | Identifies the TXITEM_Breaks_Page drop-down item inside the TXITEM_Breaks's drop-down menu. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding SmallIcon and Text resources. |
| TXITEM_Breaks_Column | 8 | Identifies the TXITEM_Breaks_Column drop-down item inside the TXITEM_Breaks's drop-down menu. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding SmallIcon and Text resources. |
| TXITEM_Breaks_TextWrapping | 9 | Identifies the TXITEM_Breaks_TextWrapping drop-down item inside the TXITEM_Breaks's drop-down menu. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding SmallIcon and Text resources. |
| TXITEM_Breaks_SectionBreaks | 10 | Identifies the TXITEM_Breaks_SectionBreaks drop-down item inside the TXITEM_Breaks's drop-down menu. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding Text resource. |
| TXITEM_Breaks_NextPage | 11 | Identifies the TXITEM_Breaks_NextPage drop-down item inside the TXITEM_Breaks's drop-down menu. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding SmallIcon and Text resources. |
| TXITEM_Breaks_Continuous | 12 | Identifies the TXITEM_Breaks_Continuous drop-down item inside the TXITEM_Breaks's drop-down menu. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding SmallIcon and Text resources. |
| TXITEM_PageColor_Automatic | 13 | Identifies the TXITEM_PageColor_Automatic drop-down item inside the TXITEM_PageColor's drop-down menu. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding SmallIcon and Text resources. |
| TXITEM_PageColor_MoreColors | 14 | Identifies the TXITEM_PageColor_MoreColors drop-down item inside the TXITEM_PageColor's drop-down menu. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding SmallIcon and Text resources. |
| TXITEM_PageBorders_Left | 15 | Identifies the TXITEM_PageBorders_Left drop-down item inside the TXITEM_PageBorders's drop-down menu. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding SmallIcon and Text resources. |
| TXITEM_PageBorders_Top | 16 | Identifies the TXITEM_PageBorders_Top drop-down item inside the TXITEM_PageBorders's drop-down menu. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding SmallIcon and Text resources. |
| TXITEM_PageBorders_Right | 17 | Identifies the TXITEM_PageBorders_Right drop-down item inside the TXITEM_PageBorders's drop-down menu. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding SmallIcon and Text resources. |
| TXITEM_PageBorders_Bottom | 18 | Identifies the TXITEM_PageBorders_Bottom drop-down item inside the TXITEM_PageBorders's drop-down menu. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding SmallIcon and Text resources. |
| TXITEM_PageBorders_All | 19 | Identifies the TXITEM_PageBorders_All drop-down item inside the TXITEM_PageBorders's drop-down menu. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding SmallIcon and Text resources. |
| TXITEM_PageLineColor_Automatic | 20 | Identifies the TXITEM_PageLineColor_Automatic drop-down item inside the TXITEM_PageLineColor's drop-down menu. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding SmallIcon and Text resources. |
| TXITEM_PageLineColor_MoreColors | 21 | Identifies the TXITEM_PageLineColor_MoreColors drop-down item inside the TXITEM_PageLineColor's drop-down menu. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding SmallIcon and Text resources. |
| TXITEM_PageLineWidth_NoLine | 22 | Identifies the TXITEM_PageLineWidth_NoLine drop-down item inside the TXITEM_PageLineWidth's drop-down menu. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding Text resource. |
Examples
The following example selects the TXITEM_Orientation_Portrait value from the Ribbon Drop Down Item enumeration and uses it as a documented workflow choice.
TXTextControl.Windows.Forms.Ribbon.RibbonPageLayoutTab.RibbonDropDownItem value = TXTextControl.Windows.Forms.Ribbon.RibbonPageLayoutTab.RibbonDropDownItem.TXITEM_Orientation_Portrait;
Console.WriteLine($"Using Ribbon Drop Down Item: {value}");Dim value As TXTextControl.Windows.Forms.Ribbon.RibbonPageLayoutTab.RibbonDropDownItem = TXTextControl.Windows.Forms.Ribbon.RibbonPageLayoutTab.RibbonDropDownItem.TXITEM_Orientation_Portrait
Console.WriteLine($"Using Ribbon Drop Down Item: {value}")