# GrapeCity.ActiveReports.Rdl.Themes.Theme.Load

## Content

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



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



<a id="GrapeCity_ActiveReports_Rdl_Themes_Theme_Load_" data-uid="GrapeCity.ActiveReports.Rdl.Themes.Theme.Load*"></a>
<h4 id="GrapeCity_ActiveReports_Rdl_Themes_Theme_Load_System_IO_Stream_" data-uid="GrapeCity.ActiveReports.Rdl.Themes.Theme.Load(System.IO.Stream)">Load(Stream)</h4>
<div class="markdown level1 summary"><p>Loads a theme from the specified XML stream.</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 Load(Stream stream)</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.io.stream">Stream</a></td>
      <td><span class="parametername">stream</span></td>
      <td><p>A XML <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.stream">Stream</a> containing the theme data.</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 <a class="xref" href="GrapeCity.ActiveReports.Rdl.Themes.Theme.html">Theme</a> object representing the loaded theme.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_Rdl_Themes_Theme_Load_System_IO_Stream__examples">Examples</h5>
<pre><code class="lang-csharp">using FileStream fileStream = new FileStream(""path/to/theme/file.rdlx-theme"", FileMode.Open, FileAccess.Read);
Theme theme = Theme.Load(fileStream)</code></pre>

</div>
