# C1.Win.Themes.C1Theme.GetColor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Themes_C1Theme_GetColor_" data-uid="C1.Win.Themes.C1Theme.GetColor*">GetColor Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Themes_C1Theme_GetColor_" data-uid="C1.Win.Themes.C1Theme.GetColor*"></a>
<h4 id="C1_Win_Themes_C1Theme_GetColor_System_String_" data-uid="C1.Win.Themes.C1Theme.GetColor(System.String)">GetColor(string)</h4>
<div class="markdown level1 summary"><p>Gets a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value specified by a path.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Color GetColor(string path)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function GetColor(path As String) As Color</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">path</span></td>
      <td><p>The target path.</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="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><p>The color specified by <code class="paramref">path</code>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_Themes_C1Theme_GetColor_" data-uid="C1.Win.Themes.C1Theme.GetColor*"></a>
<h4 id="C1_Win_Themes_C1Theme_GetColor_System_String_System_Drawing_Color_" data-uid="C1.Win.Themes.C1Theme.GetColor(System.String,System.Drawing.Color)">GetColor(string, Color)</h4>
<div class="markdown level1 summary"><p>Gets a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value specified by a path.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Color GetColor(string path, Color defaultValue)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function GetColor(path As String, defaultValue As Color) As Color</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">path</span></td>
      <td><p>The target path.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">defaultValue</span></td>
      <td><p>Used if value at specified path does not exist.</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="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><p>The color specified by <code class="paramref">path</code> or <see paramref="defaultValue"></see> if value at specified path does not exist.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
