TX Text Control .NET Server

Javascript: DocumentPermissions.allowFormatting Property

Property|Introduced in 25.0

Description

Gets or sets a value specifying whether the document can be formatted.

Syntax

<boolean> DocumentPermissions.allowFormatting

Examples

The following example demonstrates DocumentPermissions.allowFormatting in a practical document-editing workflow. It gets or sets a value specifying whether the document can be formatted.

const allowFormatting = TXTextControl.documentPermissions.allowFormatting;
console.log("allow formatting:", allowFormatting);