Back to Devexpress

IExportable.Printable Property

expressappframework-devexpress-dot-expressapp-dot-systemmodule-dot-iexportable.md

latest3.1 KB
Original Source

IExportable.Printable Property

Specifies the IPrintable control of the current List Editor.

Namespace : DevExpress.ExpressApp.SystemModule

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
IBasePrintable Printable { get; }
vb
ReadOnly Property Printable As IBasePrintable

Property Value

TypeDescription
IBasePrintable

An IPrintable control of the current List Editor.

|

Remarks

The ExportController and PrintingController Controllers use the XtraPrintingLibrary to perform printing and exporting operations under List Editors. This library exposes types that print and export data from the controls that implement the IPrintable interface. So, the PrintingController and ExportController Controllers print and export data only from List Editors that embed a control implementing the IPrintable interface. To access the printable control of the current exportable List Editor, use the Printable property.

It may be required to change the current control to be exported, when implementing a custom IExportable List Editor. In this instance, trigger the IExportable.PrintableChanged event in the Printable property’s setter, to notify the ExportController that the ExportController.ExportAction should be updated.

csharp
public IPrintable Printable {
    get { return printable; }
    set {
        if(printable != value) {
            printable = value;
            if(PrintableChanged != null) {
                PrintableChanged(this, new PrintableChangedEventArgs(printable));
            }
        }
    }
}

See Also

Printing

Exporting

IExportable Interface

IExportable Members

DevExpress.ExpressApp.SystemModule Namespace