# C1.Framework.Drawing.Gdi.DeviceContexts.DeviceContext.FillTriangle

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Framework_Drawing_Gdi_DeviceContexts_DeviceContext_FillTriangle_" data-uid="C1.Framework.Drawing.Gdi.DeviceContexts.DeviceContext.FillTriangle*">FillTriangle Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Framework_Drawing_Gdi_DeviceContexts_DeviceContext_FillTriangle_" data-uid="C1.Framework.Drawing.Gdi.DeviceContexts.DeviceContext.FillTriangle*"></a>
<h4 id="C1_Framework_Drawing_Gdi_DeviceContexts_DeviceContext_FillTriangle_System_Drawing_Color_System_Drawing_Color_System_Drawing_Color_System_Drawing_Point_System_Drawing_Point_System_Drawing_Point_" data-uid="C1.Framework.Drawing.Gdi.DeviceContexts.DeviceContext.FillTriangle(System.Drawing.Color,System.Drawing.Color,System.Drawing.Color,System.Drawing.Point,System.Drawing.Point,System.Drawing.Point)">FillTriangle(Color, Color, Color, Point, Point, Point)</h4>
<div class="markdown level1 summary"><p>Gradient fills the 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 void FillTriangle(Color color1, Color color2, Color color3, Point vertex1, Point vertex2, Point vertex3)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub FillTriangle(color1 As Color, color2 As Color, color3 As Color, vertex1 As Point, vertex2 As Point, vertex3 As Point)</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="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">color1</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> indicates the color of the vertex1.</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">color2</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> indicates the color of the vertex2.</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">color3</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> indicates the color of the vertex3.</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>
  </tbody>
</table>
</div>
