PrintHelper Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
PrintHelper(Panel, PrintHelperOptions) |
Initializes a new instance of the PrintHelper class. |
PrintHelper(Panel, PrintHelperOptions, DispatcherQueue) |
Initializes a new instance of the PrintHelper class. |
PrintHelper(Panel, PrintHelperOptions)
Initializes a new instance of the PrintHelper class.
public PrintHelper (Windows.UI.Xaml.Controls.Panel canvasContainer, Microsoft.Toolkit.Uwp.Helpers.PrintHelperOptions defaultPrintHelperOptions = default);
new Microsoft.Toolkit.Uwp.Helpers.PrintHelper : Windows.UI.Xaml.Controls.Panel * Microsoft.Toolkit.Uwp.Helpers.PrintHelperOptions -> Microsoft.Toolkit.Uwp.Helpers.PrintHelper
Public Sub New (canvasContainer As Panel, Optional defaultPrintHelperOptions As PrintHelperOptions = Nothing)
Parameters
- canvasContainer
- Windows.UI.Xaml.Controls.Panel
XAML panel used to attach printing canvas. Can be hidden in your UI with Opacity = 0 for instance
- defaultPrintHelperOptions
- PrintHelperOptions
Default settings for the print tasks
Applies to
PrintHelper(Panel, PrintHelperOptions, DispatcherQueue)
Initializes a new instance of the PrintHelper class.
public PrintHelper (Windows.UI.Xaml.Controls.Panel canvasContainer, Microsoft.Toolkit.Uwp.Helpers.PrintHelperOptions defaultPrintHelperOptions = default, Windows.System.DispatcherQueue dispatcherQueue = default);
new Microsoft.Toolkit.Uwp.Helpers.PrintHelper : Windows.UI.Xaml.Controls.Panel * Microsoft.Toolkit.Uwp.Helpers.PrintHelperOptions * Windows.System.DispatcherQueue -> Microsoft.Toolkit.Uwp.Helpers.PrintHelper
Public Sub New (canvasContainer As Panel, Optional defaultPrintHelperOptions As PrintHelperOptions = Nothing, Optional dispatcherQueue As DispatcherQueue = Nothing)
Parameters
- canvasContainer
- Windows.UI.Xaml.Controls.Panel
XAML panel used to attach printing canvas. Can be hidden in your UI with Opacity = 0 for instance
- defaultPrintHelperOptions
- PrintHelperOptions
Default settings for the print tasks
- dispatcherQueue
- Windows.System.DispatcherQueue
The DispatcherQueue that should be used to dispatch UI updates, or null if this is being called from the UI thread.