RibbonItem 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 RibbonItem represents an item in the RibbonPermissionsTab that is not a drop-down item. The corresponding string of a RibbonItem is the same as the item's Name property. The RibbonItem enumeration can be used with the RibbonPermissionsTab's FrameworkElement.FindName method to get an item and manipulate it or with the ResourceProvider class that provides static methods to receive bitmaps or strings which are associated with the corresponding ribbon item.
Syntax
public enum RibbonPermissionsTab.RibbonItemPublic Enum RibbonPermissionsTab.RibbonItemMembers
| Member | Value | Description |
|---|---|---|
| TXITEM_RestrictFormattingGroup | 0 | Identifies the TXITEM_RestrictFormattingGroup ribbon group inside the RibbonPermissionsTab ribbon tab. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding LargeIcon, SmallIcon, Text and KeyTip resources. |
| TXITEM_AllowFormatting | 1 | Identifies the TXITEM_AllowFormatting ribbon item inside the TXITEM_RestrictFormattingGroup ribbon group. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding SmallIcon, Text, ToolTipTitle, ToolTipDescription and KeyTip resources. |
| TXITEM_AllowFormattingStyles | 2 | Identifies the TXITEM_AllowFormattingStyles ribbon item inside the TXITEM_RestrictFormattingGroup ribbon group. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding SmallIcon, Text, ToolTipTitle, ToolTipDescription and KeyTip resources. |
| TXITEM_RestrictEditingGroup | 3 | Identifies the TXITEM_RestrictEditingGroup ribbon group inside the RibbonPermissionsTab ribbon tab. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding LargeIcon, SmallIcon, Text and KeyTip resources. |
| TXITEM_AllowPrinting | 4 | Identifies the TXITEM_AllowPrinting ribbon item inside the TXITEM_RestrictEditingGroup ribbon group. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding SmallIcon, Text, ToolTipTitle, ToolTipDescription and KeyTip resources. |
| TXITEM_AllowCopy | 5 | Identifies the TXITEM_AllowCopy ribbon item inside the TXITEM_RestrictEditingGroup ribbon group. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding SmallIcon, Text, ToolTipTitle, ToolTipDescription and KeyTip resources. |
| TXITEM_FillInFormFields | 6 | Identifies the TXITEM_FillInFormFields ribbon item inside the TXITEM_RestrictEditingGroup ribbon group. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding SmallIcon, Text, ToolTipTitle, ToolTipDescription and KeyTip resources. |
| TXITEM_ReadOnly | 7 | Identifies the TXITEM_ReadOnly ribbon item inside the TXITEM_RestrictEditingGroup ribbon group. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding LargeIcon, SmallIcon, Text, ToolTipTitle, ToolTipDescription and KeyTip resources. |
| TXITEM_ReadOnlyExceptionsGroup | 8 | Identifies the TXITEM_ReadOnlyExceptionsGroup ribbon group inside the RibbonPermissionsTab ribbon tab. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding LargeIcon, SmallIcon, Text and KeyTip resources. |
| TXITEM_Users | 9 | Identifies the TXITEM_Users ribbon item inside the TXITEM_ReadOnlyExceptionsGroup ribbon group. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding ToolTipTitle, ToolTipDescription and KeyTip resources. |
| TXITEM_AddUsers | 10 | Identifies the TXITEM_AddUsers ribbon item inside the TXITEM_ReadOnlyExceptionsGroup ribbon group. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding LargeIcon, SmallIcon, Text, ToolTipTitle and ToolTipDescription resources. |
| TXITEM_EditRestrictedDocumentGroup | 11 | Identifies the TXITEM_EditRestrictedDocumentGroup ribbon group inside the RibbonPermissionsTab ribbon tab. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding LargeIcon, SmallIcon, Text and KeyTip resources. |
| TXITEM_EnforceProtection | 12 | Identifies the TXITEM_EnforceProtection ribbon item inside the TXITEM_EditRestrictedDocumentGroup ribbon group. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding LargeIcon, SmallIcon, Text, ToolTipTitle, ToolTipDescription and KeyTip resources. |
| TXITEM_HighlightEditableRegions | 13 | Identifies the TXITEM_HighlightEditableRegions ribbon item inside the TXITEM_EditRestrictedDocumentGroup ribbon group. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding SmallIcon, Text and KeyTip resources. |
| TXITEM_PreviousEditableRegion | 14 | Identifies the TXITEM_PreviousEditableRegion ribbon item inside the TXITEM_EditRestrictedDocumentGroup ribbon group. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding SmallIcon, Text and KeyTip resources. |
| TXITEM_NextEditableRegion | 15 | Identifies the TXITEM_NextEditableRegion ribbon item inside the TXITEM_EditRestrictedDocumentGroup ribbon group. The string conversion of that identifier can be passed to the appropriate ResourceProvider method to get the corresponding SmallIcon, Text and KeyTip resources. |
Examples
The following example selects the TXITEM_Restrict Formatting Group value from the Ribbon Item enumeration and uses it as a documented workflow choice.
TXTextControl.WPF.RibbonPermissionsTab.RibbonItem value = TXTextControl.WPF.RibbonPermissionsTab.RibbonItem.TXITEM_RestrictFormattingGroup;
Console.WriteLine($"Using Ribbon Item: {value}");Dim value As TXTextControl.WPF.RibbonPermissionsTab.RibbonItem = TXTextControl.WPF.RibbonPermissionsTab.RibbonItem.TXITEM_RestrictFormattingGroup
Console.WriteLine($"Using Ribbon Item: {value}")