TX Text Control .NET for Windows Forms

CanPrint 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

Informs whether the document can be printed. The property's value depends on the DocumentPermissions.AllowPrinting property and the currently set edit mode.

Syntax

public bool CanPrint { get; }

Examples

The following example checks can print before performing the related operation.

if (textControl.CanPrint)
{
    textControl.Print("CustomerName");
}

Limitations

Runtime only.

Read only.