AllowCopy Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
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; }Public Property AllowCopy As BooleanExamples
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;Dim documentPermissions As DocumentPermissions = textControl.DocumentPermissions
documentPermissions.AllowCopy = True
If documentPermissions.AllowCopy Then
Console.WriteLine("Document Permissions: Allow Copy is enabled.")
End If
documentPermissions.ReadOnly = True
documentPermissions.AllowPrinting = True