CustomExportEventArgs.ExportOptions Property

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

Namespace: DevExpress.ExpressApp.SystemModule

Assembly: DevExpress.ExpressApp.v18.2.dll

Declaration

public ExportOptionsBase ExportOptions { get; set; }
Public Property ExportOptions As ExportOptionsBase

Property Value

Type Description
ExportOptionsBase

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