# GrapeCity.ActiveReports.Converters.ColorToBrushConverter

## Content

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



  <h1 id="GrapeCity_ActiveReports_Converters_ColorToBrushConverter" data-uid="GrapeCity.ActiveReports.Converters.ColorToBrushConverter" class="text-break">ColorToBrushConverter Class
</h1>
  <div class="markdown level0 summary"><p>Represents a converter that converts various color types to a brush.</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">ColorToBrushConverter</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.data.ivalueconverter">IValueConverter</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.ActiveReports.Converters.html">GrapeCity.ActiveReports.Converters</a></h6>
  <h6><strong>Assembly</strong>: MESCIUS.ActiveReports.Viewer.Wpf.dll</h6>
  <h5 id="GrapeCity_ActiveReports_Converters_ColorToBrushConverter_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class ColorToBrushConverter : IValueConverter</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="GrapeCity_ActiveReports_Converters_ColorToBrushConverter__ctor" data-uid="GrapeCity.ActiveReports.Converters.ColorToBrushConverter.#ctor">
          <a class="xref" href="GrapeCity.ActiveReports.Converters.ColorToBrushConverter.-ctor.html#GrapeCity_ActiveReports_Converters_ColorToBrushConverter__ctor">ColorToBrushConverter()</a>
        </td>
        <td class="markdown level1 summary"></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_Converters_ColorToBrushConverter_Convert_System_Object_System_Type_System_Object_System_Globalization_CultureInfo_" data-uid="GrapeCity.ActiveReports.Converters.ColorToBrushConverter.Convert(System.Object,System.Type,System.Object,System.Globalization.CultureInfo)">
          <a class="xref" href="GrapeCity.ActiveReports.Converters.ColorToBrushConverter.Convert.html#GrapeCity_ActiveReports_Converters_ColorToBrushConverter_Convert_System_Object_System_Type_System_Object_System_Globalization_CultureInfo_">Convert(object, Type, object, CultureInfo)</a>
        </td>
        <td class="markdown level1 summary"><p>Converts various color types to a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.solidcolorbrush">SolidColorBrush</a> for display in the UI.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Converters_ColorToBrushConverter_ConvertBack_System_Object_System_Type_System_Object_System_Globalization_CultureInfo_" data-uid="GrapeCity.ActiveReports.Converters.ColorToBrushConverter.ConvertBack(System.Object,System.Type,System.Object,System.Globalization.CultureInfo)">
          <a class="xref" href="GrapeCity.ActiveReports.Converters.ColorToBrushConverter.ConvertBack.html#GrapeCity_ActiveReports_Converters_ColorToBrushConverter_ConvertBack_System_Object_System_Type_System_Object_System_Globalization_CultureInfo_">ConvertBack(object, Type, object, CultureInfo)</a>
        </td>
        <td class="markdown level1 summary"><p>Converts the brush back to the original color type.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
