CanDocumentFormat Property
- Namespace
TXTextControl.ServerVisualisation
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesServer. Core. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.Server. dll
Description
Informs whether the document can be formatted with page and section formatting attributes. The property's value depends on the DocumentPermissions.AllowFormatting property and the currently set edit mode.
Syntax
public bool CanDocumentFormat { get; }Public ReadOnly Property CanDocumentFormat As BooleanExamples
The following example applies bold formatting through the text view generator's selection by using TextViewGenerator.CanDocumentFormat.
Selection formattedSelection = textViewGenerator.Selection;
formattedSelection.Bold = true;
textViewGenerator.Selection = formattedSelection;
if (textViewGenerator.CanDocumentFormat)
{
Console.WriteLine("Text View Generator is ready for this operation.");
}Dim formattedSelection As Selection = textViewGenerator.Selection
formattedSelection.Bold = True
textViewGenerator.Selection = formattedSelection
If textViewGenerator.CanDocumentFormat Then
Console.WriteLine("Text View Generator is ready for this operation.")
End IfLimitations
Runtime only.
Read only.