# C1.Util.DX.Direct2D.GradientStopCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Util_DX_Direct2D_GradientStopCollection" data-uid="C1.Util.DX.Direct2D.GradientStopCollection" class="text-break">GradientStopCollection Class
</h1>
  <div class="markdown level0 summary"><p>ID2D1GradientStopCollection</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"><span class="xref">GradientStopCollection</span></div>
      <div class="level6"><a class="xref" href="C1.Util.DX.Direct2D.GradientStopCollection1.html">GradientStopCollection1</a></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_GradientStopCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[Guid(&quot;2cd906a7-12e2-11dc-9fed-001143a055f9&quot;)]
public class GradientStopCollection : Resource, IDisposable, IUnknown</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;Guid(&quot;2cd906a7-12e2-11dc-9fed-001143a055f9&quot;)&gt;
Public Class GradientStopCollection
    Inherits Resource
    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_GradientStopCollection__ctor_System_IntPtr_" data-uid="C1.Util.DX.Direct2D.GradientStopCollection.#ctor(System.IntPtr)">
          <a class="xref" href="C1.Util.DX.Direct2D.GradientStopCollection.-ctor.html#C1_Util_DX_Direct2D_GradientStopCollection__ctor_System_IntPtr_">GradientStopCollection(IntPtr)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.Direct2D.GradientStopCollection.html">GradientStopCollection</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_GradientStopCollection_Create_C1_Util_DX_Direct2D_RenderTarget_C1_Util_DX_Direct2D_GradientStop___" data-uid="C1.Util.DX.Direct2D.GradientStopCollection.Create(C1.Util.DX.Direct2D.RenderTarget,C1.Util.DX.Direct2D.GradientStop[])">
          <a class="xref" href="C1.Util.DX.Direct2D.GradientStopCollection.Create.html#C1_Util_DX_Direct2D_GradientStopCollection_Create_C1_Util_DX_Direct2D_RenderTarget_C1_Util_DX_Direct2D_GradientStop___">Create(RenderTarget, GradientStop[])</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an <a class="xref" href="C1.Util.DX.Direct2D.GradientStopCollection.html">GradientStopCollection</a> from the specified gradient stops, a Gamma StandardRgb, and ExtendMode.Clamp.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_GradientStopCollection_Create_C1_Util_DX_Direct2D_RenderTarget_C1_Util_DX_Direct2D_GradientStop___C1_Util_DX_Direct2D_ExtendMode_" data-uid="C1.Util.DX.Direct2D.GradientStopCollection.Create(C1.Util.DX.Direct2D.RenderTarget,C1.Util.DX.Direct2D.GradientStop[],C1.Util.DX.Direct2D.ExtendMode)">
          <a class="xref" href="C1.Util.DX.Direct2D.GradientStopCollection.Create.html#C1_Util_DX_Direct2D_GradientStopCollection_Create_C1_Util_DX_Direct2D_RenderTarget_C1_Util_DX_Direct2D_GradientStop___C1_Util_DX_Direct2D_ExtendMode_">Create(RenderTarget, GradientStop[], ExtendMode)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an <a class="xref" href="C1.Util.DX.Direct2D.GradientStopCollection.html">GradientStopCollection</a> from the specified gradient stops, color Gamma.StandardRgb, and extend mode.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_GradientStopCollection_Create_C1_Util_DX_Direct2D_RenderTarget_C1_Util_DX_Direct2D_GradientStop___C1_Util_DX_Direct2D_Gamma_" data-uid="C1.Util.DX.Direct2D.GradientStopCollection.Create(C1.Util.DX.Direct2D.RenderTarget,C1.Util.DX.Direct2D.GradientStop[],C1.Util.DX.Direct2D.Gamma)">
          <a class="xref" href="C1.Util.DX.Direct2D.GradientStopCollection.Create.html#C1_Util_DX_Direct2D_GradientStopCollection_Create_C1_Util_DX_Direct2D_RenderTarget_C1_Util_DX_Direct2D_GradientStop___C1_Util_DX_Direct2D_Gamma_">Create(RenderTarget, GradientStop[], Gamma)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an <a class="xref" href="C1.Util.DX.Direct2D.GradientStopCollection.html">GradientStopCollection</a> from the specified gradient stops, color interpolation gamma, and ExtendMode.Clamp.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_GradientStopCollection_Create_C1_Util_DX_Direct2D_RenderTarget_C1_Util_DX_Direct2D_GradientStop___C1_Util_DX_Direct2D_Gamma_C1_Util_DX_Direct2D_ExtendMode_" data-uid="C1.Util.DX.Direct2D.GradientStopCollection.Create(C1.Util.DX.Direct2D.RenderTarget,C1.Util.DX.Direct2D.GradientStop[],C1.Util.DX.Direct2D.Gamma,C1.Util.DX.Direct2D.ExtendMode)">
          <a class="xref" href="C1.Util.DX.Direct2D.GradientStopCollection.Create.html#C1_Util_DX_Direct2D_GradientStopCollection_Create_C1_Util_DX_Direct2D_RenderTarget_C1_Util_DX_Direct2D_GradientStop___C1_Util_DX_Direct2D_Gamma_C1_Util_DX_Direct2D_ExtendMode_">Create(RenderTarget, GradientStop[], Gamma, ExtendMode)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an <a class="xref" href="C1.Util.DX.Direct2D.GradientStopCollection.html">GradientStopCollection</a> from the specified gradient stops, color interpolation gamma, and extend mode.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_GradientStopCollection_GetColorInterpolationGamma" data-uid="C1.Util.DX.Direct2D.GradientStopCollection.GetColorInterpolationGamma">
          <a class="xref" href="C1.Util.DX.Direct2D.GradientStopCollection.GetColorInterpolationGamma.html#C1_Util_DX_Direct2D_GradientStopCollection_GetColorInterpolationGamma">GetColorInterpolationGamma()</a>
        </td>
        <td class="markdown level1 summary"><p>D2D1_GAMMA ID2D1GradientStopCollection::GetColorInterpolationGamma()</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_GradientStopCollection_GetExtendMode" data-uid="C1.Util.DX.Direct2D.GradientStopCollection.GetExtendMode">
          <a class="xref" href="C1.Util.DX.Direct2D.GradientStopCollection.GetExtendMode.html#C1_Util_DX_Direct2D_GradientStopCollection_GetExtendMode">GetExtendMode()</a>
        </td>
        <td class="markdown level1 summary"><p>D2D1_EXTEND_MODE ID2D1GradientStopCollection::GetExtendMode()</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_GradientStopCollection_GetGradientStopCount" data-uid="C1.Util.DX.Direct2D.GradientStopCollection.GetGradientStopCount">
          <a class="xref" href="C1.Util.DX.Direct2D.GradientStopCollection.GetGradientStopCount.html#C1_Util_DX_Direct2D_GradientStopCollection_GetGradientStopCount">GetGradientStopCount()</a>
        </td>
        <td class="markdown level1 summary"><p>unsigned int ID2D1GradientStopCollection::GetGradientStopCount()</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_GradientStopCollection_GetGradientStops_C1_Util_DX_Direct2D_GradientStop___System_Int32_" data-uid="C1.Util.DX.Direct2D.GradientStopCollection.GetGradientStops(C1.Util.DX.Direct2D.GradientStop[],System.Int32)">
          <a class="xref" href="C1.Util.DX.Direct2D.GradientStopCollection.GetGradientStops.html#C1_Util_DX_Direct2D_GradientStopCollection_GetGradientStops_C1_Util_DX_Direct2D_GradientStop___System_Int32_">GetGradientStops(GradientStop[], int)</a>
        </td>
        <td class="markdown level1 summary"><p>void ID2D1GradientStopCollection::GetGradientStops([Out, Buffer] D2D1_GRADIENT_STOP* gradientStops,[In] unsigned int gradientStopsCount)</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_GradientStopCollection_op_Explicit_System_IntPtr__C1_Util_DX_Direct2D_GradientStopCollection" data-uid="C1.Util.DX.Direct2D.GradientStopCollection.op_Explicit(System.IntPtr)~C1.Util.DX.Direct2D.GradientStopCollection">
          <a class="xref" href="C1.Util.DX.Direct2D.GradientStopCollection.op_Explicit.html#C1_Util_DX_Direct2D_GradientStopCollection_op_Explicit_System_IntPtr__C1_Util_DX_Direct2D_GradientStopCollection">explicit operator GradientStopCollection(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.GradientStopCollection.html">GradientStopCollection</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
