TX Text Control .NET for Windows Forms

DocumentPermissions Property

Property|Introduced in 25.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets a DocumentPermissions object which provides properties determining how a document can be edited and formatted when the EditMode property is set to EditMode.ReadAndSelect.

Syntax

public DocumentPermissions DocumentPermissions { get; }

Examples

The following example makes a document read-only while still allowing users to print it.

DocumentPermissions permissions = textControl.DocumentPermissions;
permissions.ReadOnly = true;
permissions.AllowPrinting = true;

Limitations

Read only.