[]
        
(Showing Draft Content)

GrapeCity.Documents.Html.GcHtmlBrowser.NewPage

NewPage Method

NewPage(Uri, PageOptions)

Creates a new page and navigates to a specified Uri.

Declaration
public HtmlPage NewPage(Uri uri, PageOptions pageOptions = null)
Public Function NewPage(uri As Uri, Optional pageOptions As PageOptions = Nothing) As HtmlPage
Parameters
Type Name Description
Uri uri

The target Uri.

PageOptions pageOptions

Configuration options for the new page.

Returns
Type Description
HtmlPage

The created HtmlPage if navigation was successful, null otherwise.

NewPage(string, PageOptions)

Creates a new page and assigns an HTML markup to the page.

Declaration
public HtmlPage NewPage(string html, PageOptions pageOptions = null)
Public Function NewPage(html As String, Optional pageOptions As PageOptions = Nothing) As HtmlPage
Parameters
Type Name Description
string html

The HTML markup to set.

PageOptions pageOptions

Configuration options for the new page.

Returns
Type Description
HtmlPage

The created HtmlPage.