# C1.Util.DX.Direct2D.SolidColorBrush

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Util_DX_Direct2D_SolidColorBrush" data-uid="C1.Util.DX.Direct2D.SolidColorBrush" class="text-break">SolidColorBrush Class
</h1>
  <div class="markdown level0 summary"><p>ID2D1SolidColorBrush</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"><a class="xref" href="C1.Util.DX.DisposeBase.html">DisposeBase</a></div>
    <div class="level2"><a class="xref" href="C1.Util.DX.CppObject.html">CppObject</a></div>
    <div class="level3"><a class="xref" href="C1.Util.DX.ComObject.html">ComObject</a></div>
    <div class="level4"><a class="xref" href="C1.Util.DX.Direct2D.Resource.html">Resource</a></div>
    <div class="level5"><a class="xref" href="C1.Util.DX.Direct2D.Brush.html">Brush</a></div>
    <div class="level6"><span class="xref">SolidColorBrush</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
    <div><a class="xref" href="C1.Util.DX.IUnknown.html">IUnknown</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Util.DX.Direct2D.html">C1.Util.DX.Direct2D</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.DX.4.6.2.dll</h6>
  <h5 id="C1_Util_DX_Direct2D_SolidColorBrush_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[Guid(&quot;2cd906a9-12e2-11dc-9fed-001143a055f9&quot;)]
public class SolidColorBrush : Brush, IDisposable, IUnknown</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;Guid(&quot;2cd906a9-12e2-11dc-9fed-001143a055f9&quot;)&gt;
Public Class SolidColorBrush
    Inherits Brush
    Implements IDisposable, IUnknown</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_Util_DX_Direct2D_SolidColorBrush__ctor_System_IntPtr_" data-uid="C1.Util.DX.Direct2D.SolidColorBrush.#ctor(System.IntPtr)">
          <a class="xref" href="C1.Util.DX.Direct2D.SolidColorBrush.-ctor.html#C1_Util_DX_Direct2D_SolidColorBrush__ctor_System_IntPtr_">SolidColorBrush(IntPtr)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.Direct2D.SolidColorBrush.html">SolidColorBrush</a> class.</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_Util_DX_Direct2D_SolidColorBrush_Create_C1_Util_DX_Direct2D_RenderTarget_C1_Util_DX_ColorF_" data-uid="C1.Util.DX.Direct2D.SolidColorBrush.Create(C1.Util.DX.Direct2D.RenderTarget,C1.Util.DX.ColorF)">
          <a class="xref" href="C1.Util.DX.Direct2D.SolidColorBrush.Create.html#C1_Util_DX_Direct2D_SolidColorBrush_Create_C1_Util_DX_Direct2D_RenderTarget_C1_Util_DX_ColorF_">Create(RenderTarget, ColorF)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new <a class="xref" href="C1.Util.DX.Direct2D.SolidColorBrush.html">SolidColorBrush</a> that has the specified color and opacity.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_SolidColorBrush_Create_C1_Util_DX_Direct2D_RenderTarget_C1_Util_DX_ColorF_System_Nullable_C1_Util_DX_Direct2D_BrushProperties__" data-uid="C1.Util.DX.Direct2D.SolidColorBrush.Create(C1.Util.DX.Direct2D.RenderTarget,C1.Util.DX.ColorF,System.Nullable{C1.Util.DX.Direct2D.BrushProperties})">
          <a class="xref" href="C1.Util.DX.Direct2D.SolidColorBrush.Create.html#C1_Util_DX_Direct2D_SolidColorBrush_Create_C1_Util_DX_Direct2D_RenderTarget_C1_Util_DX_ColorF_System_Nullable_C1_Util_DX_Direct2D_BrushProperties__">Create(RenderTarget, ColorF, BrushProperties?)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new <a class="xref" href="C1.Util.DX.Direct2D.SolidColorBrush.html">SolidColorBrush</a> that has the specified color and opacity.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_SolidColorBrush_GetColor" data-uid="C1.Util.DX.Direct2D.SolidColorBrush.GetColor">
          <a class="xref" href="C1.Util.DX.Direct2D.SolidColorBrush.GetColor.html#C1_Util_DX_Direct2D_SolidColorBrush_GetColor">GetColor()</a>
        </td>
        <td class="markdown level1 summary"><p>D2D_COLOR_F ID2D1SolidColorBrush::GetColor()</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_SolidColorBrush_SetColor_C1_Util_DX_ColorF_" data-uid="C1.Util.DX.Direct2D.SolidColorBrush.SetColor(C1.Util.DX.ColorF)">
          <a class="xref" href="C1.Util.DX.Direct2D.SolidColorBrush.SetColor.html#C1_Util_DX_Direct2D_SolidColorBrush_SetColor_C1_Util_DX_ColorF_">SetColor(ColorF)</a>
        </td>
        <td class="markdown level1 summary"><p>void ID2D1SolidColorBrush::SetColor([In] const D2D_COLOR_F* color)</p>
</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_Util_DX_Direct2D_SolidColorBrush_op_Explicit_System_IntPtr__C1_Util_DX_Direct2D_SolidColorBrush" data-uid="C1.Util.DX.Direct2D.SolidColorBrush.op_Explicit(System.IntPtr)~C1.Util.DX.Direct2D.SolidColorBrush">
          <a class="xref" href="C1.Util.DX.Direct2D.SolidColorBrush.op_Explicit.html#C1_Util_DX_Direct2D_SolidColorBrush_op_Explicit_System_IntPtr__C1_Util_DX_Direct2D_SolidColorBrush">explicit operator SolidColorBrush(IntPtr)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs an explicit conversion from <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">IntPtr</a> to <a class="xref" href="C1.Util.DX.Direct2D.SolidColorBrush.html">SolidColorBrush</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
