# GrapeCity.ActiveReports.Rdl.Themes.Theme.Create

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_ActiveReports_Rdl_Themes_Theme_Create_" data-uid="GrapeCity.ActiveReports.Rdl.Themes.Theme.Create*">Create Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Rdl_Themes_Theme_Create_" data-uid="GrapeCity.ActiveReports.Rdl.Themes.Theme.Create*"></a>
<h4 id="GrapeCity_ActiveReports_Rdl_Themes_Theme_Create_System_String_GrapeCity_ActiveReports_ResourceLocator_" data-uid="GrapeCity.ActiveReports.Rdl.Themes.Theme.Create(System.String,GrapeCity.ActiveReports.ResourceLocator)">Create(string, ResourceLocator)</h4>
<div class="markdown level1 summary"><p>Creates a theme using the specified theme URI and resource locator.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Theme Create(string themeUri, ResourceLocator locator)</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">themeUri</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> value indicating the URI of the theme.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.ResourceLocator.html">ResourceLocator</a></td>
      <td><span class="parametername">locator</span></td>
      <td><p>A <a class="xref" href="GrapeCity.ActiveReports.ResourceLocator.html">ResourceLocator</a> object for locating theme resources.</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.ActiveReports.Rdl.Themes.Theme.html">Theme</a></td>
      <td><p>A new instance of <a class="xref" href="GrapeCity.ActiveReports.Rdl.Themes.Theme.html">Theme</a>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_Rdl_Themes_Theme_Create_System_String_GrapeCity_ActiveReports_ResourceLocator__examples">Examples</h5>
<pre><code class="lang-csharp">Uri themeUri = new Uri("path/to/theme/file.rdlx-theme");
ResourceLocator resourceLocator = GetResourceLocator();
Theme theme = Theme.Create(themeUri, resourceLocator)</code></pre>

</div>
