ViewExportService

Name Value
Assembly Catel.Core
Namespace Catel.Services
Available on .NET Framework 4.5, .NET Framework 4.6
public class ViewExportService : IViewExportService, ServiceBase

Base types ServiceBase

Base types

IViewExportService

The ViewExportService interface.

Fields

Constructors

ViewExportService(IViewManager viewManager, ISaveFileService saveFileService)

Initializes a new instance of the ViewExportService class.

Parameters

Name Description
viewManager The view manager.
saveFileService The save file service.

Exceptions

Name Description
ArgumentNullException The viewManager isnull.

Methods

Export(IViewModel viewModel, ExportMode exportMode, double dpiX, double dpiY)

Exports the viewModel ’s view to the print or clipboard or file.

Parameters

Name Description
viewModel The view model.
exportMode The export mode.
dpiX The dpi X.
dpiY The dpi Y.

Exceptions

Name Description
System.InvalidOperationException
System.ArgumentNullException The viewModel isnull.

Remarks

If exportMode is Print then the dpiX and dpiY argument will be ignored.


Have a question about Catel? Use StackOverflow with the Catel tag!


Discussion