DocumentPermissions Class
- Namespace
TXTextControl
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. Core. SDK
- Assembly
TXTextControl.Core. dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. Core. SDK TXTextControl.from the setup.dll
- Also in
TXTextControl.asTextControl. ASP. SDK 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 DocumentPermissionsPublic Class DocumentPermissionsExamples
The following example configures document permissions for the current document.
DocumentPermissions documentPermissions = textControl.DocumentPermissions;
documentPermissions.ReadOnly = true;
documentPermissions.AllowPrinting = true;Dim documentPermissions As DocumentPermissions = textControl.DocumentPermissions
documentPermissions.ReadOnly = True
documentPermissions.AllowPrinting = TrueMembers
Constructors
| Constructor | Description |
|---|---|
| DocumentPermissions | Not described in the reference. public DocumentPermissions(); |
Properties
| Property | Description |
|---|---|
| AllowCopy | Specifies whether document content can be copied to the clipboard. The default setting of this property is true. |
| AllowEditingFormFields | Specifies whether form fields can be edited. The default setting of this property is true. |
| AllowFormatting | Gets 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. |
| AllowFormattingStyles | Gets or sets a value specifying whether formatting styles can be used to format the document. The default setting of this property is true. |
| AllowPrinting | Gets or sets a value specifying whether the document can be printed. The default setting of this property is true. |
| ReadOnly | Gets 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. |