Gets or sets a value specifying whether formatting styles can be used to format the document. The default setting of this property is true.

Syntax

public bool AllowFormattingStyles { get; set; }

Examples

The following example shows the TXTextControl.DocumentPermissions.AllowFormatting property. Here, it is set to true so that the formatting styles can be used.

textControl1.EditMode = TXTextControl.EditMode.ReadAndSelect;
TXTextControl.DocumentPermissions document = new TXTextControl.DocumentPermissions();
document.AllowFormatting = true;
document.AllowFormattingStyles = true;