# GrapeCity.ActiveReports.Chart.Styling.StyleManager.GetValue

## Content

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



<h1 id="GrapeCity_ActiveReports_Chart_Styling_StyleManager_GetValue_" data-uid="GrapeCity.ActiveReports.Chart.Styling.StyleManager.GetValue*">GetValue Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Chart_Styling_StyleManager_GetValue_" data-uid="GrapeCity.ActiveReports.Chart.Styling.StyleManager.GetValue*"></a>
<h4 id="GrapeCity_ActiveReports_Chart_Styling_StyleManager_GetValue_System_Type_System_String_" data-uid="GrapeCity.ActiveReports.Chart.Styling.StyleManager.GetValue(System.Type,System.String)">GetValue(Type, string)</h4>
<div class="markdown level1 summary"><p>Resolves a saved style by name into a usable value for the specified element type.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static object GetValue(Type type, string name)</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.type">Type</a></td>
      <td><span class="parametername">type</span></td>
      <td><p>The element type the style applies to.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">name</span></td>
      <td><p>The style name to resolve. An empty name or <a class="xref" href="GrapeCity.ActiveReports.Chart.Styling.StyleManager.ItemDefault.html">ItemDefault</a> returns a freshly created
default value; <a class="xref" href="GrapeCity.ActiveReports.Chart.Styling.StyleManager.ItemNull.html">ItemNull</a> returns <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a>.</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.object">object</a></td>
      <td><p>A clone of the saved style value, a new default value, or <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a> as described above.
If the name is not found, an <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.invalidcastexception">InvalidCastException</a> instance is returned (not thrown)
describing the invalid style name.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
