RibbonPermissionsTab Property
- Namespace
TXTextControl.WPF
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWPF. dll
Description
Specifies the name of the WPF.RibbonPermissionsTab object to be used with a TextControl. The elements of the ribbon tab can be used for determining how the document can be edited, when it is enforced to be protected. The property value is an empty string, if there is no ribbon tab connected.
Syntax
public string RibbonPermissionsTab { get; set; }Public Property RibbonPermissionsTab As StringExamples
The following example uses TextControl.RibbonPermissionsTab to configure ribbon permissions tab as part of the text control workflow. The configured value is checked before the workflow continues.
textControl.RibbonPermissionsTab = "Quarterly report";
if (!string.IsNullOrWhiteSpace(textControl.RibbonPermissionsTab))
{
Console.WriteLine($"Ribbon Permissions Tab: {textControl.RibbonPermissionsTab}");
}textControl.RibbonPermissionsTab = "Quarterly report"
If Not String.IsNullOrWhiteSpace(textControl.RibbonPermissionsTab) Then
Console.WriteLine($"Ribbon Permissions Tab: {textControl.RibbonPermissionsTab}")
End If