TX Text Control .NET Server

AllowCopy Property

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

Description

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

Syntax

public bool AllowCopy { get; set; }

Examples

The following example configures document permissions for the current document by using DocumentPermissions.AllowCopy.

DocumentPermissions documentPermissions = textControl.DocumentPermissions;

documentPermissions.AllowCopy = true;
if (documentPermissions.AllowCopy)
{
    Console.WriteLine("Document Permissions: Allow Copy is enabled.");
}

documentPermissions.ReadOnly = true;
documentPermissions.AllowPrinting = true;