# C1.Framework.Drawing.Gdi.GradientBrush.FillTriangle

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Framework_Drawing_Gdi_GradientBrush_FillTriangle_" data-uid="C1.Framework.Drawing.Gdi.GradientBrush.FillTriangle*">FillTriangle Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Framework_Drawing_Gdi_GradientBrush_FillTriangle_" data-uid="C1.Framework.Drawing.Gdi.GradientBrush.FillTriangle*"></a>
<h4 id="C1_Framework_Drawing_Gdi_GradientBrush_FillTriangle_C1_Framework_Drawing_Gdi_DeviceContexts_DeviceContext_System_Drawing_Point_System_Drawing_Point_System_Drawing_Point_System_Drawing_Color___" data-uid="C1.Framework.Drawing.Gdi.GradientBrush.FillTriangle(C1.Framework.Drawing.Gdi.DeviceContexts.DeviceContext,System.Drawing.Point,System.Drawing.Point,System.Drawing.Point,System.Drawing.Color[])">FillTriangle(DeviceContext, Point, Point, Point, Color[])</h4>
<div class="markdown level1 summary"><p>Fills triangle with specified colors.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void FillTriangle(DeviceContext deviceContext, Point vertex1, Point vertex2, Point vertex3, Color[] colors)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub FillTriangle(deviceContext As DeviceContext, vertex1 As Point, vertex2 As Point, vertex3 As Point, colors As Color())</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.Framework.Drawing.Gdi.DeviceContexts.DeviceContext.html">DeviceContext</a></td>
      <td><span class="parametername">deviceContext</span></td>
      <td><p>A <a class="xref" href="C1.Framework.Drawing.Gdi.DeviceContexts.DeviceContext.html">DeviceContext</a> indicates the dc.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.point">Point</a></td>
      <td><span class="parametername">vertex1</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.point">Point</a> indicates the vertex1 of triangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.point">Point</a></td>
      <td><span class="parametername">vertex2</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.point">Point</a> indicates the vertex2 of triangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.point">Point</a></td>
      <td><span class="parametername">vertex3</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.point">Point</a> indicates the vertex3 of triangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a>[]</td>
      <td><span class="parametername">colors</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> array indicates the gradient colors.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
