Table of Contents

Method Apply

Namespace
DotNetBrowser.Print.Settings
Assembly
DotNetBrowser.dll

Apply<TPrintSettings>(TPrintSettings, Action<TPrintSettings>)

Performs the action with the print settings and then applies the changes.

public static void Apply<TPrintSettings>(this TPrintSettings printSettings, Action<TPrintSettings> action) where TPrintSettings : class, IPrintSettings

Parameters

printSettings TPrintSettings

The print settings to work with. Cannot be null.

action Action<TPrintSettings>

The action to perform with these print settings. Cannot be null.

Type Parameters

TPrintSettings

The type of print settings that can be applied.

Exceptions

ObjectDisposedException

The IPrintJob<TPrintSettings> has already been disposed.

InvalidOperationException

The print settings were not applied properly.