.NET Core 3.0+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

IExportable.SupportedExportFormats Property

Gets the list of export formats supported by the IExportable List Editor.

Namespace: DevExpress.ExpressApp.SystemModule

Assembly: DevExpress.ExpressApp.v20.1.dll

Declaration

List<ExportTarget> SupportedExportFormats { get; }
ReadOnly Property SupportedExportFormats As List(Of ExportTarget)

Property Value

Type Description
List<ExportTarget>

An List<ExportTarget> object that is a list of export formats supported by the exportable List Editor.

Remarks

This list is used to fill the Items collection of the ExportController.ExportAction.

When supporting the IExportable interface in a custom List Editor, the implementation of this property can be similar to the following:

public List<ExportTarget> SupportedExportFormats {
   get {
      if(Printable == null) {
         return new List<ExportTarget>();
      }
      else {
         return new List<ExportTarget>(){
            ExportTarget.Csv,
            ExportTarget.Html,
            ExportTarget.Image,
            ExportTarget.Mht,
            ExportTarget.Pdf,
            ExportTarget.Rtf,
            ExportTarget.Text,
            ExportTarget.Xls,
            ExportTarget.Xlsx
         };
      }
   }
}
See Also