TX Text Control .NET Server

DocumentPermissions Class

Class|Introduced in 25.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.Core.dll
Install
dotnet add package TXTextControl.TextControl.Core.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.dll from the setup.
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

Description

The DocumentPermissions class provides settings determining how the document can be edited, when the EditMode is changed from Edit to ReadAndSelect.

Syntax

public class DocumentPermissions

Examples

The following example configures document permissions for the current document.

DocumentPermissions documentPermissions = textControl.DocumentPermissions;
documentPermissions.ReadOnly = true;
documentPermissions.AllowPrinting = true;

Members

Constructors

ConstructorDescription
DocumentPermissionsNot described in the reference. public DocumentPermissions();

Properties

PropertyDescription
AllowCopySpecifies whether document content can be copied to the clipboard. The default setting of this property is true.
AllowEditingFormFieldsSpecifies whether form fields can be edited. The default setting of this property is true.
AllowFormattingGets or sets a value specifying whether the document can be formatted. The default setting of this property is true. To use formatting styles, the AllowFormattingStyles property must also be set to true.
AllowFormattingStylesGets or sets a value specifying whether formatting styles can be used to format the document. The default setting of this property is true.
AllowPrintingGets or sets a value specifying whether the document can be printed. The default setting of this property is true.
ReadOnlyGets or sets a value specifying whether the document is read only. Neither the document's text can be changed nor the document can be formatted. The default setting of this property is true.