The Document
public class DocumentPermissionsPublic Class DocumentPermissions Introduced: X15.
The following example shows the Document
textControl1.EditMode = TXTextControl.EditMode.ReadAndSelect;
TXTextControl.DocumentPermissions documentPermissions = new TXTextControl.DocumentPermissions();
documentPermissions.AllowCopy = false;
documentPermissions.AllowFormatting = false;
documentPermissions.AllowFormattingStyles = false;
documentPermissions.AllowPrinting = false;TextControl1.EditMode = TXTextControl.EditMode.ReadAndSelect
Dim documentPermissions As TXTextControl.DocumentPermissions = New TXTextControl.DocumentPermissions()
documentPermissions.AllowCopy = False
documentPermissions.AllowFormatting = False
documentPermissions.AllowFormattingStyles = False
documentPermissions.AllowPrinting = False| Property | Description |
|---|---|
| Allow |
Specifies whether document content can be copied to the clipboard. |
| Allow |
Specifies whether form fields can be edited. |
| Allow |
Gets or sets a value specifying whether the document can be formatted. |
| Allow |
Gets or sets a value specifying whether formatting styles can be used to format the document. |
| Allow |
Gets or sets a value specifying whether the document can be printed. |
| Read |
Gets or sets a value specifying whether the document is read only. |