TX Text Control .NET for WPF

RibbonPermissionsTab Class

Class|Introduced in 25.0
Namespace
TXTextControl.WPF
Package
TXTextControl.TextControl.WPF.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.WPF.dll
Install
dotnet add package TXTextControl.TextControl.WPF.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.WPF.dll from the setup.
Inherits
  1. RibbonTab
  2. RibbonPermissionsTab
Implements
IComponentConnector

Description

The RibbonPermissionsTab class represents a Windows Forms ribbon tab for determining how the document can be edited, when it is enforced to be protected. It is inherited from the System.Windows.Controls.Ribbon.RibbonTab class and must be hosted in a System.Windows.Controls.Ribbon.Ribbon object. It can be connected with a WPF.TextControl through the WPF.TextControl.RibbonPermissionsTab property. Each item has a name, available through its Name property, which corresponds with a member of the WPF.RibbonPermissionsTab.RibbonItem enumeration. The FrameworkElement.FindName method can be used to get a certain item and manipulate, move or delete it.

Syntax

public class RibbonPermissionsTab : System.Windows.Controls.Ribbon.RibbonTab, IComponentConnector

Examples

The following example creates a Ribbon Permissions Tab instance and configures its allow adding user names setting for a document workflow.

TXTextControl.WPF.RibbonPermissionsTab ribbonPermissionsTab = new();
ribbonPermissionsTab.AllowAddingUserNames = true;

Members

Constructors

ConstructorDescription
RibbonPermissionsTabInitializes a new instance of the RibbonPermissionsTab class.

Properties

PropertyDescription
AllowAddingUserNamesGets or sets a value indicating whether the user can add user names by the RibbonPermissionsTab's Add Users dialog that are not represented by the RegisteredUserNames property. The default value is true.
RegisteredUserNamesGets or sets an array of strings that represents those registered user names that can be added by the RibbonPermissionsTab's Add Users dialog. The default value is an empty array.

Methods

MethodDescription
InitializeComponentNot described in the reference. public void InitializeComponent();

Enumerations

EnumerationDescription
RibbonItemEach 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.