Specifies whether document content can be copied to the clipboard. The default setting of this property is true.

Syntax

public bool AllowCopy { get; set; }
Public Property AllowCopy() As Boolean

Examples

The following example shows the DocumentPermissions class. Here, its AllowCopy property is to false in order to prevent copying of the documents content to the clipboard.

textControl1.EditMode = TXTextControl.EditMode.ReadAndSelect;
TXTextControl.DocumentPermissions document = new TXTextControl.DocumentPermissions();
document.AllowCopy = false;
TextControl1.EditMode = TXTextControl.EditMode.ReadAndSelect
Dim document As TXTextControl.DocumentPermissions = New TXTextControl.DocumentPermissions()
document.AllowCopy = False