Back to Devexpress

CustomExportEventArgs.ExportOptions Property

expressappframework-devexpress-dot-expressapp-dot-systemmodule-dot-customexporteventargs-2cd41f4f.md

latest3.4 KB
Original Source

CustomExportEventArgs.ExportOptions Property

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

Namespace : DevExpress.ExpressApp.SystemModule

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

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

Property Value

TypeDescription
ExportOptionsBase

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

|

Remarks

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:

ExportTargetExport Options
ExportTarget.XlsXlsExportOptions
ExportTarget.XlsxXlsxExportOptions
ExportTarget.HtmlHtmlExportOptions
ExportTarget.MhtMhtExportOptions
ExportTarget.PdfPdfExportOptions
ExportTarget.TextTextExportOptions
ExportTarget.RtfRtfExportOptions
ExportTarget.CsvCsvExportOptions
ExportTarget.ImageImageExportOptions

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

How to: Customize the Export Action Behavior

CustomExportEventArgs Class

CustomExportEventArgs Members

DevExpress.ExpressApp.SystemModule Namespace