PrintSettingsExtensionsApplyTPrintSettings Method |
Performs the action with the print settings and then applies the changes.
Namespace:
DotNetBrowser.Print.Settings
Assembly:
DotNetBrowser (in DotNetBrowser.dll) Version: 2.25.1
Syntax public static void Apply<TPrintSettings>(
this TPrintSettings printSettings,
Action<TPrintSettings> action
)
where TPrintSettings : class, IPrintSettings
Parameters
- printSettings
- Type: TPrintSettings
The print settings to work with. Cannot be null. - action
- Type: SystemActionTPrintSettings
The action to perform with these print settings. Cannot be null.
Type Parameters
- TPrintSettings
- The type of print settings that can be applied.
Return Value
Type:
true if the settings were applied successfully,
false otherwise.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Exceptions Exception | Condition |
---|
ObjectDisposedException | The IPrintJobTPrintSettings has already been disposed. |
InvalidOperationException | The print settings were not applied properly. |
See Also