# FarPoint.Win.Spread.CellType.ITextOrientationSupport2.PaintText

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_CellType_ITextOrientationSupport2_PaintText_" data-uid="FarPoint.Win.Spread.CellType.ITextOrientationSupport2.PaintText*">PaintText Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_CellType_ITextOrientationSupport2_PaintText_" data-uid="FarPoint.Win.Spread.CellType.ITextOrientationSupport2.PaintText*"></a>
<h4 id="FarPoint_Win_Spread_CellType_ITextOrientationSupport2_PaintText_System_Drawing_Graphics_System_Drawing_Rectangle_FarPoint_Win_Spread_Appearance_System_Object_System_Boolean_System_Boolean_System_Single_FarPoint_Win_Spread_ExtraRendererSettings_System_Boolean_System_Int32_" data-uid="FarPoint.Win.Spread.CellType.ITextOrientationSupport2.PaintText(System.Drawing.Graphics,System.Drawing.Rectangle,FarPoint.Win.Spread.Appearance,System.Object,System.Boolean,System.Boolean,System.Single,FarPoint.Win.Spread.ExtraRendererSettings,System.Boolean,System.Int32)">PaintText(Graphics, Rectangle, Appearance, object, bool, bool, float, ExtraRendererSettings, bool, int)</h4>
<div class="markdown level1 summary"><p>Paint diagonal line rotated text.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void PaintText(Graphics g, Rectangle r, Appearance appearance, object value, bool isSelected, bool isLocked, float zoomFactor, ExtraRendererSettings extraRendererSettings, bool diagonalLine, int adjustTop)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub PaintText(g As Graphics, r As Rectangle, appearance As Appearance, value As Object, isSelected As Boolean, isLocked As Boolean, zoomFactor As Single, extraRendererSettings As ExtraRendererSettings, diagonalLine As Boolean, adjustTop 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 for painting the cell.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a></td>
      <td><span class="parametername">r</span></td>
      <td><p>Original boundary rectangle to paint.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.Appearance.html">Appearance</a></td>
      <td><span class="parametername">appearance</span></td>
      <td><p>Apperarance that specifise painting setting.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>Object that contains the name of the renderer control</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">isSelected</span></td>
      <td><p>if set to <code>true</code>, the cell is in a selected state.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">isLocked</span></td>
      <td><p>if set to <code>true</code>, the cell is in a locked state.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">zoomFactor</span></td>
      <td><p>Numeric value for scaling the display of the renderer control.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.ExtraRendererSettings.html">ExtraRendererSettings</a></td>
      <td><span class="parametername">extraRendererSettings</span></td>
      <td><p>The extra renderer settings.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">diagonalLine</span></td>
      <td><p>if set to <code>true</code>, the cell is painting as a diagonal line cell.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">adjustTop</span></td>
      <td><p>Adjusting value to scale the original bound rectangle to the diagonal line area.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
