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

CustomExportEventArgs.ExportOptions Property

Specifies the export options to be applied when data is exported.

Namespace: DevExpress.ExpressApp.SystemModule

Assembly: DevExpress.ExpressApp.v21.1.dll


public ExportOptionsBase ExportOptions { get; set; }

Property Value

Type Description

An ExportOptionsBase object which specifies the export options to be applied when data is exported.


When handling the ExportController.CustomExport event, use the ExportOptions parameter to customize the options that will be applied when the data is exported. Cast the object returned by this property to one of the following types in dependence on the value returned by the CustomExportEventArgs.ExportTarget parameter:

ExportTarget Export Options
ExportTarget.Xls XlsExportOptions
ExportTarget.Xlsx XlsxExportOptions
ExportTarget.Html HtmlExportOptions
ExportTarget.Mht MhtExportOptions
ExportTarget.Pdf PdfExportOptions
ExportTarget.Text TextExportOptions
ExportTarget.Rtf RtfExportOptions
ExportTarget.Csv CsvExportOptions
ExportTarget.Image ImageExportOptions

You can also cast ExportOptions to IDataAwareExportOptions to switch from DataAware to WYSIWYG export type (see ExportType). For details, refer to the IDataAwareExportable topic.

See Also