Table of Contents

Method SetHeaderTemplate

Namespace
DotNetBrowser.Print.Settings
Assembly
DotNetBrowser.dll

SetHeaderTemplate<TPrintSettings>(IHeaderTemplate<TPrintSettings>, string)

Sets the HTML to be displayed in the header.

public static TPrintSettings SetHeaderTemplate<TPrintSettings>(this IHeaderTemplate<TPrintSettings> obj, string headerTemplate) where TPrintSettings : class, IPrintSettings

Parameters

obj IHeaderTemplate<TPrintSettings>

The IHeaderTemplate<TPrintSettings> implementation.

headerTemplate string

The HTML to be displayed in the header. Cannot be null.

Returns

TPrintSettings

The current print settings instance.

Type Parameters

TPrintSettings

The specific print settings type.

Exceptions

ArgumentNullException

The specified header template is null.