# GrapeCity.ActiveReports.Chart.Styling.StyleManager

## Content

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



  <h1 id="GrapeCity_ActiveReports_Chart_Styling_StyleManager" data-uid="GrapeCity.ActiveReports.Chart.Styling.StyleManager" class="text-break">StyleManager Class
</h1>
  <div class="markdown level0 summary"><p>Maintains the named, reusable style values (such as backdrops, borders and lines) that can be applied to
chart elements, keyed by element type. Provides the lookup, save and remove operations used by the style
editing UI. For internal use only.</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">StyleManager</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.ActiveReports.Chart.Styling.html">GrapeCity.ActiveReports.Chart.Styling</a></h6>
  <h6><strong>Assembly</strong>: MESCIUS.ActiveReports.Chart.dll</h6>
  <h5 id="GrapeCity_ActiveReports_Chart_Styling_StyleManager_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public sealed class StyleManager</code></pre>
  </div>
  <h5 id="GrapeCity_ActiveReports_Chart_Styling_StyleManager_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>All members are static; the class is a process-wide registry and cannot be instantiated. Style names are
matched against the localized sentinel values <a class="xref" href="GrapeCity.ActiveReports.Chart.Styling.StyleManager.ItemDefault.html">ItemDefault</a>, <a class="xref" href="GrapeCity.ActiveReports.Chart.Styling.StyleManager.ItemCustom.html">ItemCustom</a> and
<a class="xref" href="GrapeCity.ActiveReports.Chart.Styling.StyleManager.ItemNull.html">ItemNull</a> to represent the default, an unsaved custom value, and an explicit null value.</p>
</div>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_ActiveReports_Chart_Styling_StyleManager_ItemCustom" data-uid="GrapeCity.ActiveReports.Chart.Styling.StyleManager.ItemCustom">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.Styling.StyleManager.ItemCustom.html">ItemCustom</a>
        </td>
        <td class="markdown level1 summary"><p>The localized name that represents a custom, unnamed style that has not been saved (for example, &quot;(Custom)&quot;).</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Chart_Styling_StyleManager_ItemDefault" data-uid="GrapeCity.ActiveReports.Chart.Styling.StyleManager.ItemDefault">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.Styling.StyleManager.ItemDefault.html">ItemDefault</a>
        </td>
        <td class="markdown level1 summary"><p>The localized name that represents the default style of an element (for example, &quot;(Default)&quot;).</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Chart_Styling_StyleManager_ItemNull" data-uid="GrapeCity.ActiveReports.Chart.Styling.StyleManager.ItemNull">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.Styling.StyleManager.ItemNull.html">ItemNull</a>
        </td>
        <td class="markdown level1 summary"><p>The localized name that represents an explicit null style value (for example, &quot;(null)&quot;).</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="GrapeCity_ActiveReports_Chart_Styling_StyleManager_ContainsValue_System_String_System_Object_System_String__" data-uid="GrapeCity.ActiveReports.Chart.Styling.StyleManager.ContainsValue(System.String,System.Object,System.String@)">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.Styling.StyleManager.ContainsValue.html#GrapeCity_ActiveReports_Chart_Styling_StyleManager_ContainsValue_System_String_System_Object_System_String__">ContainsValue(string, object, out string)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether internal inverse  hashes contain the specified object and returns its name if it does</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Chart_Styling_StyleManager_ContainsValue_System_Type_System_String_" data-uid="GrapeCity.ActiveReports.Chart.Styling.StyleManager.ContainsValue(System.Type,System.String)">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.Styling.StyleManager.ContainsValue.html#GrapeCity_ActiveReports_Chart_Styling_StyleManager_ContainsValue_System_Type_System_String_">ContainsValue(Type, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether a named style has been saved for the specified element type.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Chart_Styling_StyleManager_GetName_System_Object_System_Object_" data-uid="GrapeCity.ActiveReports.Chart.Styling.StyleManager.GetName(System.Object,System.Object)">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.Styling.StyleManager.GetName.html#GrapeCity_ActiveReports_Chart_Styling_StyleManager_GetName_System_Object_System_Object_">GetName(object, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the saved style name that matches the specified value, used to show the current selection in
the style UI.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Chart_Styling_StyleManager_GetNames_System_String_" data-uid="GrapeCity.ActiveReports.Chart.Styling.StyleManager.GetNames(System.String)">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.Styling.StyleManager.GetNames.html#GrapeCity_ActiveReports_Chart_Styling_StyleManager_GetNames_System_String_">GetNames(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the sorted list of style names available for the specified element type, suitable for
populating a style picker. The list always begins with <a class="xref" href="GrapeCity.ActiveReports.Chart.Styling.StyleManager.ItemDefault.html">ItemDefault</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Chart_Styling_StyleManager_GetValue_System_Type_System_String_" data-uid="GrapeCity.ActiveReports.Chart.Styling.StyleManager.GetValue(System.Type,System.String)">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.Styling.StyleManager.GetValue.html#GrapeCity_ActiveReports_Chart_Styling_StyleManager_GetValue_System_Type_System_String_">GetValue(Type, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Resolves a saved style by name into a usable value for the specified element type.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Chart_Styling_StyleManager_RemoveValue_System_String_System_Object_" data-uid="GrapeCity.ActiveReports.Chart.Styling.StyleManager.RemoveValue(System.String,System.Object)">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.Styling.StyleManager.RemoveValue.html#GrapeCity_ActiveReports_Chart_Styling_StyleManager_RemoveValue_System_String_System_Object_">RemoveValue(string, object)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes the first saved style whose value equals the specified object, for the given element type.
Use this overload when the value is known but its name is not.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Chart_Styling_StyleManager_RemoveValue_System_Type_System_String_" data-uid="GrapeCity.ActiveReports.Chart.Styling.StyleManager.RemoveValue(System.Type,System.String)">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.Styling.StyleManager.RemoveValue.html#GrapeCity_ActiveReports_Chart_Styling_StyleManager_RemoveValue_System_Type_System_String_">RemoveValue(Type, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes the named style saved for the specified element type, if present.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Chart_Styling_StyleManager_SaveValue_System_Object_System_String_" data-uid="GrapeCity.ActiveReports.Chart.Styling.StyleManager.SaveValue(System.Object,System.String)">
          <a class="xref" href="GrapeCity.ActiveReports.Chart.Styling.StyleManager.SaveValue.html#GrapeCity_ActiveReports_Chart_Styling_StyleManager_SaveValue_System_Object_System_String_">SaveValue(object, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Saves a style value under the specified name so it can later be retrieved with <a class="xref" href="GrapeCity.ActiveReports.Chart.Styling.StyleManager.GetValue.html#GrapeCity_ActiveReports_Chart_Styling_StyleManager_GetValue_System_Type_System_String_">GetValue(Type, string)</a>.
The value is keyed by the runtime type name of <code class="paramref">obj</code>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
