A newer version of this page is available. Switch to the current version.

ExportOptionsViewModel.Create(PrintingSystemBase, ExportFormat, IEnumerable<ExportFormat>) Method

Creates a new ExportOptionsViewModel class descendant with the specified settings.

Namespace: DevExpress.Xpf.Printing.PreviewControl

Assembly: DevExpress.Xpf.Printing.v18.2.dll

Declaration

public static ExportOptionsViewModel Create(
    PrintingSystemBase printingSystem,
    ExportFormat format,
    IEnumerable<ExportFormat> hiddenFormats = null
)
Public Shared Function Create(
    printingSystem As PrintingSystemBase,
    format As ExportFormat,
    hiddenFormats As IEnumerable(Of ExportFormat) = Nothing
) As ExportOptionsViewModel

Parameters

Name Type Description
printingSystem PrintingSystemBase

A PrintingSystemBase object.

format ExportFormat

A ExportFormat enumeration value.

Optional Parameters

Name Type Default Description
hiddenFormats IEnumerable<ExportFormat>

null

A collection of ExportFormat enumeration values.

Returns

Type Description
ExportOptionsViewModel

A ExportOptionsViewModel object.

See Also