# C1.Util.DX.Direct2D.LinearGradientBrush.Create

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Direct2D_LinearGradientBrush_Create_" data-uid="C1.Util.DX.Direct2D.LinearGradientBrush.Create*">Create Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Direct2D_LinearGradientBrush_Create_" data-uid="C1.Util.DX.Direct2D.LinearGradientBrush.Create*"></a>
<h4 id="C1_Util_DX_Direct2D_LinearGradientBrush_Create_C1_Util_DX_Direct2D_RenderTarget_C1_Util_DX_Direct2D_LinearGradientBrushProperties_C1_Util_DX_Direct2D_GradientStopCollection_" data-uid="C1.Util.DX.Direct2D.LinearGradientBrush.Create(C1.Util.DX.Direct2D.RenderTarget,C1.Util.DX.Direct2D.LinearGradientBrushProperties,C1.Util.DX.Direct2D.GradientStopCollection)">Create(RenderTarget, LinearGradientBrushProperties, GradientStopCollection)</h4>
<div class="markdown level1 summary"><p>Creates an <a class="xref" href="C1.Util.DX.Direct2D.LinearGradientBrush.html">LinearGradientBrush</a> that contains the specified gradient stops and has the specified transform and base opacity.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static LinearGradientBrush Create(RenderTarget renderTarget, LinearGradientBrushProperties linearGradientBrushProperties, GradientStopCollection gradientStopCollection)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(renderTarget As RenderTarget, linearGradientBrushProperties As LinearGradientBrushProperties, gradientStopCollection As GradientStopCollection) As LinearGradientBrush</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="C1.Util.DX.Direct2D.RenderTarget.html">RenderTarget</a></td>
      <td><span class="parametername">renderTarget</span></td>
      <td><p>an instance of <a class="xref" href="C1.Util.DX.Direct2D.RenderTarget.html">RenderTarget</a></p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.LinearGradientBrushProperties.html">LinearGradientBrushProperties</a></td>
      <td><span class="parametername">linearGradientBrushProperties</span></td>
      <td><p>The start and end points of the gradient.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.GradientStopCollection.html">GradientStopCollection</a></td>
      <td><span class="parametername">gradientStopCollection</span></td>
      <td><p>A collection of <a class="xref" href="C1.Util.DX.Direct2D.GradientStop.html">GradientStop</a> structures that describe the colors in the brush's gradient and their locations along the gradient line.</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="C1.Util.DX.Direct2D.LinearGradientBrush.html">LinearGradientBrush</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_DX_Direct2D_LinearGradientBrush_Create_" data-uid="C1.Util.DX.Direct2D.LinearGradientBrush.Create*"></a>
<h4 id="C1_Util_DX_Direct2D_LinearGradientBrush_Create_C1_Util_DX_Direct2D_RenderTarget_C1_Util_DX_Direct2D_LinearGradientBrushProperties_System_Nullable_C1_Util_DX_Direct2D_BrushProperties__C1_Util_DX_Direct2D_GradientStopCollection_" data-uid="C1.Util.DX.Direct2D.LinearGradientBrush.Create(C1.Util.DX.Direct2D.RenderTarget,C1.Util.DX.Direct2D.LinearGradientBrushProperties,System.Nullable{C1.Util.DX.Direct2D.BrushProperties},C1.Util.DX.Direct2D.GradientStopCollection)">Create(RenderTarget, LinearGradientBrushProperties, BrushProperties?, GradientStopCollection)</h4>
<div class="markdown level1 summary"><p>Creates an <a class="xref" href="C1.Util.DX.Direct2D.LinearGradientBrush.html">LinearGradientBrush</a> that contains the specified gradient stops and has the specified transform and base opacity.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static LinearGradientBrush Create(RenderTarget renderTarget, LinearGradientBrushProperties linearGradientBrushProperties, BrushProperties? brushProperties, GradientStopCollection gradientStopCollection)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Create(renderTarget As RenderTarget, linearGradientBrushProperties As LinearGradientBrushProperties, brushProperties As BrushProperties?, gradientStopCollection As GradientStopCollection) As LinearGradientBrush</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="C1.Util.DX.Direct2D.RenderTarget.html">RenderTarget</a></td>
      <td><span class="parametername">renderTarget</span></td>
      <td><p>an instance of <a class="xref" href="C1.Util.DX.Direct2D.RenderTarget.html">RenderTarget</a></p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.LinearGradientBrushProperties.html">LinearGradientBrushProperties</a></td>
      <td><span class="parametername">linearGradientBrushProperties</span></td>
      <td><p>The start and end points of the gradient.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.BrushProperties.html">BrushProperties</a>?</td>
      <td><span class="parametername">brushProperties</span></td>
      <td><p>The transform and base opacity of the new brush, or NULL. If this value is NULL, the brush defaults to a base opacity of 1.0f and the identity matrix as its transformation.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.GradientStopCollection.html">GradientStopCollection</a></td>
      <td><span class="parametername">gradientStopCollection</span></td>
      <td><p>A collection of <a class="xref" href="C1.Util.DX.Direct2D.GradientStop.html">GradientStop</a> structures that describe the colors in the brush's gradient and their locations along the gradient line.</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="C1.Util.DX.Direct2D.LinearGradientBrush.html">LinearGradientBrush</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
