Table of Contents

Method SetPaperSize

Namespace
DotNetBrowser.Print.Settings
Assembly
DotNetBrowser.dll

SetPaperSize<TPrintSettings>(IPaperSize<TPrintSettings>, PaperSize)

Sets the paper size for printing.

public static TPrintSettings SetPaperSize<TPrintSettings>(this IPaperSize<TPrintSettings> obj, PaperSize paperSize) where TPrintSettings : class, IPrintSettings

Parameters

obj IPaperSize<TPrintSettings>

The IPaperSize<TPrintSettings> implementation.

paperSize PaperSize

The paper size used for printing.

Returns

TPrintSettings

The current print settings instance.

Type Parameters

TPrintSettings

The specific print settings type.

Exceptions

ArgumentException

The specified paper size is null.