# FarPoint.Win.IBorderRotationSupport.Paint

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_IBorderRotationSupport_Paint_" data-uid="FarPoint.Win.IBorderRotationSupport.Paint*">Paint Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_IBorderRotationSupport_Paint_" data-uid="FarPoint.Win.IBorderRotationSupport.Paint*"></a>
<h4 id="FarPoint_Win_IBorderRotationSupport_Paint_System_Drawing_Graphics_System_Drawing_Point_System_Drawing_Point_System_Drawing_Point_System_Drawing_Point_System_Boolean_System_Boolean_System_Boolean_System_Boolean_System_Boolean_System_Boolean_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="FarPoint.Win.IBorderRotationSupport.Paint(System.Drawing.Graphics,System.Drawing.Point,System.Drawing.Point,System.Drawing.Point,System.Drawing.Point,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Int32,System.Int32,System.Int32,System.Int32)">Paint(Graphics, Point, Point, Point, Point, bool, bool, bool, bool, bool, bool, int, int, int, int)</h4>
<div class="markdown level1 summary"><p>Paint orientation border.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void Paint(Graphics g, Point topleft, Point bottomLeft, Point bottomRight, Point topRight, bool rightToLeft, bool paintTop, bool paintBottom, bool paintRight, bool paintLeft, bool diagonalUpDownPainting, int xCross, int yCross, int widthCross, int heightCross)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub Paint(g As Graphics, topleft As Point, bottomLeft As Point, bottomRight As Point, topRight As Point, rightToLeft As Boolean, paintTop As Boolean, paintBottom As Boolean, paintRight As Boolean, paintLeft As Boolean, diagonalUpDownPainting As Boolean, xCross As Integer, yCross As Integer, widthCross As Integer, heightCross As Integer)</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.graphics">Graphics</a></td>
      <td><span class="parametername">g</span></td>
      <td><p>Graphics device interface</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">topleft</span></td>
      <td><p>Top-left location</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">bottomLeft</span></td>
      <td><p>Bottom-left location</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">bottomRight</span></td>
      <td><p>Bottom-right location</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">topRight</span></td>
      <td><p>Top-right location</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">rightToLeft</span></td>
      <td><p>Whether layout is right-to-left</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">paintTop</span></td>
      <td><p>Whether to paint border at top</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">paintBottom</span></td>
      <td><p>Whether to paint border at bottom</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">paintRight</span></td>
      <td><p>Whether to paint border at right</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">paintLeft</span></td>
      <td><p>Whether to paint border at left</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">diagonalUpDownPainting</span></td>
      <td><p>Whether to paint border for a diagonal line</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">xCross</span></td>
      <td><p>X coordinate where the cross diagonal line starts</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">yCross</span></td>
      <td><p>Y coordinate where the cross diagonal line starts</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">widthCross</span></td>
      <td><p>Width of the cross rectangle</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">heightCross</span></td>
      <td><p>Height of the cross rectangle</p>
</td>
    </tr>
  </tbody>
</table>
</div>
