RibbonDropDownItem 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 RibbonDropDownItem represents a drop-down item in the RibbonViewTab. 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 RibbonViewTab.RibbonDropDownItemPublic Enum RibbonViewTab.RibbonDropDownItemMembers
| Member | Value | Description |
|---|---|---|
| TXITEM_ZoomFactor_25 | 0 | Identifies the TXITEM_ZoomFactor_25 drop-down item inside the TXITEM_ZoomFactor'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_ZoomFactor_50 | 1 | Identifies the TXITEM_ZoomFactor_50 drop-down item inside the TXITEM_ZoomFactor'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_ZoomFactor_75 | 2 | Identifies the TXITEM_ZoomFactor_75 drop-down item inside the TXITEM_ZoomFactor'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_ZoomFactor_100 | 3 | Identifies the TXITEM_ZoomFactor_100 drop-down item inside the TXITEM_ZoomFactor'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_ZoomFactor_150 | 4 | Identifies the TXITEM_ZoomFactor_150 drop-down item inside the TXITEM_ZoomFactor'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_ZoomFactor_200 | 5 | Identifies the TXITEM_ZoomFactor_200 drop-down item inside the TXITEM_ZoomFactor'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_ZoomFactor_400 | 6 | Identifies the TXITEM_ZoomFactor_400 drop-down item inside the TXITEM_ZoomFactor'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_Zoom Factor_25 value from the Ribbon Drop Down Item enumeration and uses it as a documented workflow choice.
TXTextControl.WPF.RibbonViewTab.RibbonDropDownItem value = TXTextControl.WPF.RibbonViewTab.RibbonDropDownItem.TXITEM_ZoomFactor_25;
Console.WriteLine($"Using Ribbon Drop Down Item: {value}");Dim value As TXTextControl.WPF.RibbonViewTab.RibbonDropDownItem = TXTextControl.WPF.RibbonViewTab.RibbonDropDownItem.TXITEM_ZoomFactor_25
Console.WriteLine($"Using Ribbon Drop Down Item: {value}")