# GrapeCity.Documents.Html.GcHtmlBrowser.NewPage

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Html_GcHtmlBrowser_NewPage_" data-uid="GrapeCity.Documents.Html.GcHtmlBrowser.NewPage*">NewPage Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Html_GcHtmlBrowser_NewPage_" data-uid="GrapeCity.Documents.Html.GcHtmlBrowser.NewPage*"></a>
<h4 id="GrapeCity_Documents_Html_GcHtmlBrowser_NewPage_System_Uri_GrapeCity_Documents_Html_PageOptions_" data-uid="GrapeCity.Documents.Html.GcHtmlBrowser.NewPage(System.Uri,GrapeCity.Documents.Html.PageOptions)">NewPage(Uri, PageOptions)</h4>
<div class="markdown level1 summary"><p>Creates a new page and navigates to a specified Uri.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public HtmlPage NewPage(Uri uri, PageOptions pageOptions = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function NewPage(uri As Uri, Optional pageOptions As PageOptions = Nothing) As HtmlPage</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="xref">Uri</span></td>
      <td><span class="parametername">uri</span></td>
      <td><p>The target Uri.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Html.PageOptions.html">PageOptions</a></td>
      <td><span class="parametername">pageOptions</span></td>
      <td><p>Configuration options for the new page.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Html.HtmlPage.html">HtmlPage</a></td>
      <td><p>The created <a class="xref" href="GrapeCity.Documents.Html.HtmlPage.html">HtmlPage</a> if navigation was successful, <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a> otherwise.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Html_GcHtmlBrowser_NewPage_" data-uid="GrapeCity.Documents.Html.GcHtmlBrowser.NewPage*"></a>
<h4 id="GrapeCity_Documents_Html_GcHtmlBrowser_NewPage_System_String_GrapeCity_Documents_Html_PageOptions_" data-uid="GrapeCity.Documents.Html.GcHtmlBrowser.NewPage(System.String,GrapeCity.Documents.Html.PageOptions)">NewPage(string, PageOptions)</h4>
<div class="markdown level1 summary"><p>Creates a new page and assigns an HTML markup to the page.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public HtmlPage NewPage(string html, PageOptions pageOptions = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function NewPage(html As String, Optional pageOptions As PageOptions = Nothing) As HtmlPage</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">html</span></td>
      <td><p>The HTML markup to set.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Html.PageOptions.html">PageOptions</a></td>
      <td><span class="parametername">pageOptions</span></td>
      <td><p>Configuration options for the new page.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Html.HtmlPage.html">HtmlPage</a></td>
      <td><p>The created <a class="xref" href="GrapeCity.Documents.Html.HtmlPage.html">HtmlPage</a>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
