[]
        
(Showing Draft Content)

GrapeCity.Documents.Html.PageOptions

Class PageOptions

Namespace
GrapeCity.Documents.Html
Assembly
GcDocs.Html.dll

Represents options for creating a page in the browser and navigating to a specified Uri.

public class PageOptions
Inheritance
object
PageOptions
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

PageOptions()

public PageOptions()

Properties

DefaultBackgroundColor

Gets or sets the background color to be used if the HTML markup doesn't specify one.

public Color? DefaultBackgroundColor { get; set; }

Property Value

System.Drawing.Color?

DisableScriptExecution

Gets or sets a value indicating whether or not to disable JavaScript on the page. Defaults to false.

public bool DisableScriptExecution { get; set; }

Property Value

bool

IgnoreHTTPSErrors

Gets or sets a value indicating whether to ignore HTTPS errors during navigation. Defaults to false.

public bool IgnoreHTTPSErrors { get; set; }

Property Value

bool

LoadLazyImages

Gets or sets whether to scroll the page down to the end to force pending images to load. Defaults to false.

public bool LoadLazyImages { get; set; }

Property Value

bool

OfflineMode

Gets or sets a value indicating whether to emulate internet disconnection. Defaults to false.

public bool OfflineMode { get; set; }

Property Value

bool

Password

Gets or sets the password for basic HTTP authentication.

See https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication for more details.

public string Password { get; set; }

Property Value

string

TimeoutOptions

Gets or sets the timeout settings for page operations.

If not set, the setting are derived from TimeoutOptions.

public TimeoutOptions TimeoutOptions { get; set; }

Property Value

TimeoutOptions

Username

Gets or sets the username for basic HTTP authentication.

See https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication for more details.

public string Username { get; set; }

Property Value

string

WaitUntil

Gets or sets the page lifetime events to wait for. Defaults to Load.

public PageLoadStates WaitUntil { get; set; }

Property Value

PageLoadStates

WindowSize

Gets or sets the virtual window size, in pixels.

public Size? WindowSize { get; set; }

Property Value

System.Drawing.Size?