DS Server

Javascript: DocumentPermissions.allowFormattingStyles Property

Property|Introduced in 25.0

Description

Gets or sets a value specifying whether formatting styles can be used to format the document.

Syntax

<boolean> DocumentPermissions.allowFormattingStyles

Examples

The following example demonstrates DocumentPermissions.allowFormattingStyles in a practical document-editing workflow. It gets or sets a value specifying whether formatting styles can be used to format the document.

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