Back to Devexpress

RichEditControl.IsPrintingAvailable Property

windowsforms-devexpress-dot-xtrarichedit-dot-richeditcontrol-2b0eafd6.md

latest3.2 KB
Original Source

RichEditControl.IsPrintingAvailable Property

Indicates whether the RichEditControl can be printed or exported.

Namespace : DevExpress.XtraRichEdit

Assembly : DevExpress.XtraRichEdit.v25.2.dll

NuGet Package : DevExpress.Win.RichEdit

Declaration

csharp
[Browsable(false)]
public bool IsPrintingAvailable { get; }
vb
<Browsable(False)>
Public ReadOnly Property IsPrintingAvailable As Boolean

Property Value

TypeDescription
Boolean

true if the control can be printed and exported; otherwise, false.

|

Remarks

The Rich Edit Control can be printed if the XtraPrinting Library is available. To print the control, call the RichEditControl.Print method.

Note

With the XtraPrinting library, you’re also able to export the control in various formats (PDF, HTML, etc.).

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the IsPrintingAvailable property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-richeditcontrol-common-api/CS/RichEditAPISample/CodeExamples/RichEditControlActions.cs#L65

csharp
RichEditControl richEdit = e.Item.Tag as RichEditControl;
if(richEdit.IsPrintingAvailable) {
    richEdit.ShowPrintPreview();

winforms-richeditcontrol-common-api/VB/RichEditAPISample/CodeExamples/RichEditControlActions.vb#L70

vb
Dim richEdit As RichEditControl = TryCast(e.Item.Tag, RichEditControl)
If richEdit.IsPrintingAvailable Then
    richEdit.ShowPrintPreview()

See Also

Print

ShowPrintPreview()

ShowPrintDialog()

RichEditControl Class

RichEditControl Members

DevExpress.XtraRichEdit Namespace