# C1.Win.Themes.C1ThemeLocator

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Themes_C1ThemeLocator" data-uid="C1.Win.Themes.C1ThemeLocator" class="text-break">C1ThemeLocator Class
</h1>
  <div class="markdown level0 summary"><p>Encapsulates a theme location (built-in or external file) and its name,
can be represented as a single string.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">C1ThemeLocator</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.Themes.html">C1.Win.Themes</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.Themes.4.8.dll</h6>
  <h5 id="C1_Win_Themes_C1ThemeLocator_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class C1ThemeLocator</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class C1ThemeLocator</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Themes_C1ThemeLocator__ctor_C1_Win_Themes_C1ThemeLocator_LocationType_System_String_" data-uid="C1.Win.Themes.C1ThemeLocator.#ctor(C1.Win.Themes.C1ThemeLocator.LocationType,System.String)">
          <a class="xref" href="C1.Win.Themes.C1ThemeLocator.-ctor.html#C1_Win_Themes_C1ThemeLocator__ctor_C1_Win_Themes_C1ThemeLocator_LocationType_System_String_">C1ThemeLocator(LocationType, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the ThemeLocator type from a location type and a theme name.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Themes_C1ThemeLocator__ctor_System_String_" data-uid="C1.Win.Themes.C1ThemeLocator.#ctor(System.String)">
          <a class="xref" href="C1.Win.Themes.C1ThemeLocator.-ctor.html#C1_Win_Themes_C1ThemeLocator__ctor_System_String_">C1ThemeLocator(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the ThemeLocator type from a string representing a theme locator.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Themes_C1ThemeLocator_Location" data-uid="C1.Win.Themes.C1ThemeLocator.Location">
          <a class="xref" href="C1.Win.Themes.C1ThemeLocator.Location.html#C1_Win_Themes_C1ThemeLocator_Location">Location</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the current theme location.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Themes_C1ThemeLocator_ThemeName" data-uid="C1.Win.Themes.C1ThemeLocator.ThemeName">
          <a class="xref" href="C1.Win.Themes.C1ThemeLocator.ThemeName.html#C1_Win_Themes_C1ThemeLocator_ThemeName">ThemeName</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the current theme name.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Themes_C1ThemeLocator_ThemesFolder" data-uid="C1.Win.Themes.C1ThemeLocator.ThemesFolder">
          <a class="xref" href="C1.Win.Themes.C1ThemeLocator.ThemesFolder.html#C1_Win_Themes_C1ThemeLocator_ThemesFolder">ThemesFolder</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the name of the folder containing theme files.</p>
<p>Theme files are assumed to be located in the sub-folder of the current application folder
with this name.</p>
<p>The default is "Themes", so e.g. if the path to the current app is
"c:\myfolder\myapp.exe", theme files will be searched in "c:\myfolder\Themes".</p>
<p>Sub-folders are included in the search.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Themes_C1ThemeLocator_GetAvailableThemes_C1_Win_Themes_C1ThemeLocator_LocationType_" data-uid="C1.Win.Themes.C1ThemeLocator.GetAvailableThemes(C1.Win.Themes.C1ThemeLocator.LocationType)">
          <a class="xref" href="C1.Win.Themes.C1ThemeLocator.GetAvailableThemes.html#C1_Win_Themes_C1ThemeLocator_GetAvailableThemes_C1_Win_Themes_C1ThemeLocator_LocationType_">GetAvailableThemes(LocationType)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets available theme names.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Themes_C1ThemeLocator_GetTheme" data-uid="C1.Win.Themes.C1ThemeLocator.GetTheme">
          <a class="xref" href="C1.Win.Themes.C1ThemeLocator.GetTheme.html#C1_Win_Themes_C1ThemeLocator_GetTheme">GetTheme()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the current theme.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Themes_C1ThemeLocator_GetThemeName_C1_Win_Themes_C1ThemeLocator_LocationType__" data-uid="C1.Win.Themes.C1ThemeLocator.GetThemeName(C1.Win.Themes.C1ThemeLocator.LocationType@)">
          <a class="xref" href="C1.Win.Themes.C1ThemeLocator.GetThemeName.html#C1_Win_Themes_C1ThemeLocator_GetThemeName_C1_Win_Themes_C1ThemeLocator_LocationType__">GetThemeName(out LocationType)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the current theme name and location.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Themes_C1ThemeLocator_ToString" data-uid="C1.Win.Themes.C1ThemeLocator.ToString">
          <a class="xref" href="C1.Win.Themes.C1ThemeLocator.ToString.html#C1_Win_Themes_C1ThemeLocator_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>
  <h3 id="operators">Operators
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Themes_C1ThemeLocator_op_Implicit_C1_Win_Themes_C1ThemeLocator__System_String" data-uid="C1.Win.Themes.C1ThemeLocator.op_Implicit(C1.Win.Themes.C1ThemeLocator)~System.String">
          <a class="xref" href="C1.Win.Themes.C1ThemeLocator.op_Implicit.html#C1_Win_Themes_C1ThemeLocator_op_Implicit_C1_Win_Themes_C1ThemeLocator__System_String">implicit operator string(C1ThemeLocator)</a>
        </td>
        <td class="markdown level1 summary"><p>Operator for converting a theme location object to a string.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Themes_C1ThemeLocator_op_Implicit_System_String__C1_Win_Themes_C1ThemeLocator" data-uid="C1.Win.Themes.C1ThemeLocator.op_Implicit(System.String)~C1.Win.Themes.C1ThemeLocator">
          <a class="xref" href="C1.Win.Themes.C1ThemeLocator.op_Implicit.html#C1_Win_Themes_C1ThemeLocator_op_Implicit_System_String__C1_Win_Themes_C1ThemeLocator">implicit operator C1ThemeLocator(string)</a>
        </td>
        <td class="markdown level1 summary"><p>The operator creates a new theme location object.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
