TX Text Control .NET Server

DocumentPermissions Property

Property|Introduced in 25.0
Namespace
TXTextControl.ServerVisualisation
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Server.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.Server.dll

Description

Gets a DocumentPermissions object which provides properties determining how a document can be edited and formatted when the EditMode property is set to EditMode.ReadAndSelect.

Syntax

public DocumentPermissions DocumentPermissions { get; }

Examples

The following example applies bold formatting through the text view generator's selection by using TextViewGenerator.DocumentPermissions.

Selection formattedSelection = textViewGenerator.Selection;
formattedSelection.Bold = true;
textViewGenerator.Selection = formattedSelection;

Console.WriteLine($"Document Permissions: {textViewGenerator.DocumentPermissions}");
Console.WriteLine("Text View Generator is ready for use.");

Limitations

Runtime only.

Read only.