# FarPoint.Win.FpCheckBox.DoPaint

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_FpCheckBox_DoPaint_" data-uid="FarPoint.Win.FpCheckBox.DoPaint*">DoPaint Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_FpCheckBox_DoPaint_" data-uid="FarPoint.Win.FpCheckBox.DoPaint*"></a>
<h4 id="FarPoint_Win_FpCheckBox_DoPaint_System_Drawing_Graphics_System_Drawing_Rectangle_System_Drawing_Color_System_Drawing_Color_FarPoint_Win_HorizontalAlignment_FarPoint_Win_VerticalAlignment_FarPoint_Win_CheckValue_System_Boolean_System_Drawing_Font_System_String_System_String_System_String_System_String_FarPoint_Win_ButtonTextAlign_FarPoint_Win_CheckBoxPicture_System_Boolean_System_Boolean_System_Boolean_FarPoint_Win_Picture_System_Drawing_StringFormat_System_Boolean_System_Single_System_Boolean_" data-uid="FarPoint.Win.FpCheckBox.DoPaint(System.Drawing.Graphics,System.Drawing.Rectangle,System.Drawing.Color,System.Drawing.Color,FarPoint.Win.HorizontalAlignment,FarPoint.Win.VerticalAlignment,FarPoint.Win.CheckValue,System.Boolean,System.Drawing.Font,System.String,System.String,System.String,System.String,FarPoint.Win.ButtonTextAlign,FarPoint.Win.CheckBoxPicture,System.Boolean,System.Boolean,System.Boolean,FarPoint.Win.Picture,System.Drawing.StringFormat,System.Boolean,System.Single,System.Boolean)">DoPaint(Graphics, Rectangle, Color, Color, HorizontalAlignment, VerticalAlignment, CheckValue, bool, Font, string, string, string, string, ButtonTextAlign, CheckBoxPicture, bool, bool, bool, Picture, StringFormat, bool, float, bool)</h4>
<div class="markdown level1 summary"><p>Paints the check box with the default picture height and width.</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 DoPaint(Graphics g, Rectangle r, Color backColor, Color foreColor, HorizontalAlignment pictAlignH, VerticalAlignment pictAlignV, CheckValue paintVal, bool bFocus, Font f, string textTrue, string textFalse, string textGray, string caption, ButtonTextAlign nAlign, CheckBoxPicture pict, bool bKeyDown, bool bMouseDown, bool bMouseOver, Picture backpict, StringFormat fmt, bool bLocked, float zoomFactor, bool pictureZoomEffect)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub DoPaint(g As Graphics, r As Rectangle, backColor As Color, foreColor As Color, pictAlignH As HorizontalAlignment, pictAlignV As VerticalAlignment, paintVal As CheckValue, bFocus As Boolean, f As Font, textTrue As String, textFalse As String, textGray As String, caption As String, nAlign As ButtonTextAlign, pict As CheckBoxPicture, bKeyDown As Boolean, bMouseDown As Boolean, bMouseOver As Boolean, backpict As Picture, fmt As StringFormat, bLocked As Boolean, zoomFactor As Single, pictureZoomEffect As Boolean)</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></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></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">backColor</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">foreColor</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.HorizontalAlignment.html">HorizontalAlignment</a></td>
      <td><span class="parametername">pictAlignH</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.VerticalAlignment.html">VerticalAlignment</a></td>
      <td><span class="parametername">pictAlignV</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.CheckValue.html">CheckValue</a></td>
      <td><span class="parametername">paintVal</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">bFocus</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.font">Font</a></td>
      <td><span class="parametername">f</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">textTrue</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">textFalse</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">textGray</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">caption</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.ButtonTextAlign.html">ButtonTextAlign</a></td>
      <td><span class="parametername">nAlign</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.CheckBoxPicture.html">CheckBoxPicture</a></td>
      <td><span class="parametername">pict</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">bKeyDown</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">bMouseDown</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">bMouseOver</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Picture.html">Picture</a></td>
      <td><span class="parametername">backpict</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.stringformat">StringFormat</a></td>
      <td><span class="parametername">fmt</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">bLocked</span></td>
      <td></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></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">pictureZoomEffect</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_FpCheckBox_DoPaint_" data-uid="FarPoint.Win.FpCheckBox.DoPaint*"></a>
<h4 id="FarPoint_Win_FpCheckBox_DoPaint_System_Drawing_Graphics_System_Drawing_Rectangle_System_Drawing_Color_System_Drawing_Color_FarPoint_Win_HorizontalAlignment_FarPoint_Win_VerticalAlignment_FarPoint_Win_CheckValue_System_Boolean_System_Drawing_Font_System_String_System_String_System_String_System_String_FarPoint_Win_ButtonTextAlign_FarPoint_Win_CheckBoxPicture_System_Boolean_System_Boolean_System_Boolean_FarPoint_Win_Picture_System_Drawing_StringFormat_System_Boolean_System_Int32_System_Int32_FarPoint_Win_VisualStyles_System_Boolean_System_Single_System_Boolean_" data-uid="FarPoint.Win.FpCheckBox.DoPaint(System.Drawing.Graphics,System.Drawing.Rectangle,System.Drawing.Color,System.Drawing.Color,FarPoint.Win.HorizontalAlignment,FarPoint.Win.VerticalAlignment,FarPoint.Win.CheckValue,System.Boolean,System.Drawing.Font,System.String,System.String,System.String,System.String,FarPoint.Win.ButtonTextAlign,FarPoint.Win.CheckBoxPicture,System.Boolean,System.Boolean,System.Boolean,FarPoint.Win.Picture,System.Drawing.StringFormat,System.Boolean,System.Int32,System.Int32,FarPoint.Win.VisualStyles,System.Boolean,System.Single,System.Boolean)">DoPaint(Graphics, Rectangle, Color, Color, HorizontalAlignment, VerticalAlignment, CheckValue, bool, Font, string, string, string, string, ButtonTextAlign, CheckBoxPicture, bool, bool, bool, Picture, StringFormat, bool, int, int, VisualStyles, bool, float, bool)</h4>
<div class="markdown level1 summary"><p>Paints the check box.</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 DoPaint(Graphics g, Rectangle r, Color backColor, Color foreColor, HorizontalAlignment pictAlignH, VerticalAlignment pictAlignV, CheckValue paintVal, bool bFocus, Font f, string textTrue, string textFalse, string textGray, string caption, ButtonTextAlign nAlign, CheckBoxPicture pict, bool bKeyDown, bool bMouseDown, bool bMouseOver, Picture backpict, StringFormat fmt, bool bLocked, int pictWidth, int pictHeight, VisualStyles visualStyles, bool rightToLeft, float zoomFactor, bool pictureZoomEffect)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub DoPaint(g As Graphics, r As Rectangle, backColor As Color, foreColor As Color, pictAlignH As HorizontalAlignment, pictAlignV As VerticalAlignment, paintVal As CheckValue, bFocus As Boolean, f As Font, textTrue As String, textFalse As String, textGray As String, caption As String, nAlign As ButtonTextAlign, pict As CheckBoxPicture, bKeyDown As Boolean, bMouseDown As Boolean, bMouseOver As Boolean, backpict As Picture, fmt As StringFormat, bLocked As Boolean, pictWidth As Integer, pictHeight As Integer, visualStyles As VisualStyles, rightToLeft As Boolean, zoomFactor As Single, pictureZoomEffect As Boolean)</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></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></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">backColor</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">foreColor</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.HorizontalAlignment.html">HorizontalAlignment</a></td>
      <td><span class="parametername">pictAlignH</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.VerticalAlignment.html">VerticalAlignment</a></td>
      <td><span class="parametername">pictAlignV</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.CheckValue.html">CheckValue</a></td>
      <td><span class="parametername">paintVal</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">bFocus</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.font">Font</a></td>
      <td><span class="parametername">f</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">textTrue</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">textFalse</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">textGray</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">caption</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.ButtonTextAlign.html">ButtonTextAlign</a></td>
      <td><span class="parametername">nAlign</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.CheckBoxPicture.html">CheckBoxPicture</a></td>
      <td><span class="parametername">pict</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">bKeyDown</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">bMouseDown</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">bMouseOver</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Picture.html">Picture</a></td>
      <td><span class="parametername">backpict</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.stringformat">StringFormat</a></td>
      <td><span class="parametername">fmt</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">bLocked</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">pictWidth</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">pictHeight</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.VisualStyles.html">VisualStyles</a></td>
      <td><span class="parametername">visualStyles</span></td>
      <td></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></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></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">pictureZoomEffect</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_FpCheckBox_DoPaint_" data-uid="FarPoint.Win.FpCheckBox.DoPaint*"></a>
<h4 id="FarPoint_Win_FpCheckBox_DoPaint_System_Drawing_Graphics_System_Drawing_Rectangle_System_Drawing_Color_System_Drawing_Color_FarPoint_Win_HorizontalAlignment_FarPoint_Win_VerticalAlignment_FarPoint_Win_CheckValue_System_Boolean_System_Drawing_Font_System_String_System_String_System_String_System_String_FarPoint_Win_ButtonTextAlign_FarPoint_Win_CheckBoxPicture_System_Boolean_System_Boolean_System_Boolean_FarPoint_Win_Picture_System_Drawing_StringFormat_System_Boolean_System_Int32_System_Int32_FarPoint_Win_VisualStyles_System_Boolean_FarPoint_Win_FocusRectangle_System_Single_System_Boolean_" data-uid="FarPoint.Win.FpCheckBox.DoPaint(System.Drawing.Graphics,System.Drawing.Rectangle,System.Drawing.Color,System.Drawing.Color,FarPoint.Win.HorizontalAlignment,FarPoint.Win.VerticalAlignment,FarPoint.Win.CheckValue,System.Boolean,System.Drawing.Font,System.String,System.String,System.String,System.String,FarPoint.Win.ButtonTextAlign,FarPoint.Win.CheckBoxPicture,System.Boolean,System.Boolean,System.Boolean,FarPoint.Win.Picture,System.Drawing.StringFormat,System.Boolean,System.Int32,System.Int32,FarPoint.Win.VisualStyles,System.Boolean,FarPoint.Win.FocusRectangle,System.Single,System.Boolean)">DoPaint(Graphics, Rectangle, Color, Color, HorizontalAlignment, VerticalAlignment, CheckValue, bool, Font, string, string, string, string, ButtonTextAlign, CheckBoxPicture, bool, bool, bool, Picture, StringFormat, bool, int, int, VisualStyles, bool, FocusRectangle, float, bool)</h4>
<div class="markdown level1 summary"><p>Paints the check box.</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 DoPaint(Graphics g, Rectangle r, Color backColor, Color foreColor, HorizontalAlignment pictAlignH, VerticalAlignment pictAlignV, CheckValue paintVal, bool bFocus, Font f, string textTrue, string textFalse, string textGray, string caption, ButtonTextAlign nAlign, CheckBoxPicture pict, bool bKeyDown, bool bMouseDown, bool bMouseOver, Picture backpict, StringFormat fmt, bool bLocked, int pictWidth, int pictHeight, VisualStyles visualStyles, bool rightToLeft, FocusRectangle focusRect, float zoomFactor, bool pictureZoomEffect)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub DoPaint(g As Graphics, r As Rectangle, backColor As Color, foreColor As Color, pictAlignH As HorizontalAlignment, pictAlignV As VerticalAlignment, paintVal As CheckValue, bFocus As Boolean, f As Font, textTrue As String, textFalse As String, textGray As String, caption As String, nAlign As ButtonTextAlign, pict As CheckBoxPicture, bKeyDown As Boolean, bMouseDown As Boolean, bMouseOver As Boolean, backpict As Picture, fmt As StringFormat, bLocked As Boolean, pictWidth As Integer, pictHeight As Integer, visualStyles As VisualStyles, rightToLeft As Boolean, focusRect As FocusRectangle, zoomFactor As Single, pictureZoomEffect As Boolean)</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></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></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">backColor</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">foreColor</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.HorizontalAlignment.html">HorizontalAlignment</a></td>
      <td><span class="parametername">pictAlignH</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.VerticalAlignment.html">VerticalAlignment</a></td>
      <td><span class="parametername">pictAlignV</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.CheckValue.html">CheckValue</a></td>
      <td><span class="parametername">paintVal</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">bFocus</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.font">Font</a></td>
      <td><span class="parametername">f</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">textTrue</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">textFalse</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">textGray</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">caption</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.ButtonTextAlign.html">ButtonTextAlign</a></td>
      <td><span class="parametername">nAlign</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.CheckBoxPicture.html">CheckBoxPicture</a></td>
      <td><span class="parametername">pict</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">bKeyDown</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">bMouseDown</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">bMouseOver</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Picture.html">Picture</a></td>
      <td><span class="parametername">backpict</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.stringformat">StringFormat</a></td>
      <td><span class="parametername">fmt</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">bLocked</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">pictWidth</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">pictHeight</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.VisualStyles.html">VisualStyles</a></td>
      <td><span class="parametername">visualStyles</span></td>
      <td></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></td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.FocusRectangle.html">FocusRectangle</a></td>
      <td><span class="parametername">focusRect</span></td>
      <td></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></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">pictureZoomEffect</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_FpCheckBox_DoPaint_" data-uid="FarPoint.Win.FpCheckBox.DoPaint*"></a>
<h4 id="FarPoint_Win_FpCheckBox_DoPaint_System_Drawing_Graphics_System_Drawing_Rectangle_System_Drawing_Color_System_Drawing_Color_FarPoint_Win_HorizontalAlignment_FarPoint_Win_VerticalAlignment_FarPoint_Win_CheckValue_System_Boolean_System_Drawing_Font_System_String_System_String_System_String_System_String_FarPoint_Win_ButtonTextAlign_FarPoint_Win_CheckBoxPicture_System_Boolean_System_Boolean_System_Boolean_FarPoint_Win_Picture_System_Drawing_StringFormat_System_Boolean_System_Int32_System_Int32_FarPoint_Win_VisualStyles_System_Boolean_FarPoint_Win_FocusRectangle_System_Boolean_System_Single_System_Boolean_" data-uid="FarPoint.Win.FpCheckBox.DoPaint(System.Drawing.Graphics,System.Drawing.Rectangle,System.Drawing.Color,System.Drawing.Color,FarPoint.Win.HorizontalAlignment,FarPoint.Win.VerticalAlignment,FarPoint.Win.CheckValue,System.Boolean,System.Drawing.Font,System.String,System.String,System.String,System.String,FarPoint.Win.ButtonTextAlign,FarPoint.Win.CheckBoxPicture,System.Boolean,System.Boolean,System.Boolean,FarPoint.Win.Picture,System.Drawing.StringFormat,System.Boolean,System.Int32,System.Int32,FarPoint.Win.VisualStyles,System.Boolean,FarPoint.Win.FocusRectangle,System.Boolean,System.Single,System.Boolean)">DoPaint(Graphics, Rectangle, Color, Color, HorizontalAlignment, VerticalAlignment, CheckValue, bool, Font, string, string, string, string, ButtonTextAlign, CheckBoxPicture, bool, bool, bool, Picture, StringFormat, bool, int, int, VisualStyles, bool, FocusRectangle, bool, float, bool)</h4>
<div class="markdown level1 summary"><p>Paints the check box.</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 DoPaint(Graphics g, Rectangle r, Color backColor, Color foreColor, HorizontalAlignment pictAlignH, VerticalAlignment pictAlignV, CheckValue paintVal, bool bFocus, Font f, string textTrue, string textFalse, string textGray, string caption, ButtonTextAlign nAlign, CheckBoxPicture pict, bool bKeyDown, bool bMouseDown, bool bMouseOver, Picture backpict, StringFormat fmt, bool bLocked, int pictWidth, int pictHeight, VisualStyles visualStyles, bool rightToLeft, FocusRectangle focusRect, bool isGrayScale, float zoomFactor, bool pictureZoomEffect)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub DoPaint(g As Graphics, r As Rectangle, backColor As Color, foreColor As Color, pictAlignH As HorizontalAlignment, pictAlignV As VerticalAlignment, paintVal As CheckValue, bFocus As Boolean, f As Font, textTrue As String, textFalse As String, textGray As String, caption As String, nAlign As ButtonTextAlign, pict As CheckBoxPicture, bKeyDown As Boolean, bMouseDown As Boolean, bMouseOver As Boolean, backpict As Picture, fmt As StringFormat, bLocked As Boolean, pictWidth As Integer, pictHeight As Integer, visualStyles As VisualStyles, rightToLeft As Boolean, focusRect As FocusRectangle, isGrayScale As Boolean, zoomFactor As Single, pictureZoomEffect As Boolean)</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>GDI+ grphics surface</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>Check box rectangle</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">backColor</span></td>
      <td><p>Background color of control</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">foreColor</span></td>
      <td><p>Foreground (text) color of control</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.HorizontalAlignment.html">HorizontalAlignment</a></td>
      <td><span class="parametername">pictAlignH</span></td>
      <td><p>Horizontal alignment of the picture</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.VerticalAlignment.html">VerticalAlignment</a></td>
      <td><span class="parametername">pictAlignV</span></td>
      <td><p>Vertical alignment of the picture</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.CheckValue.html">CheckValue</a></td>
      <td><span class="parametername">paintVal</span></td>
      <td><p>Specifies the value of the check box.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">bFocus</span></td>
      <td><p>Whether it is focused</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.font">Font</a></td>
      <td><span class="parametername">f</span></td>
      <td><p>Font of the text</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">textTrue</span></td>
      <td><p>Text when check value is true</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">textFalse</span></td>
      <td><p>Text when check value is false</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">textGray</span></td>
      <td><p>Text when check value is intermediate</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">caption</span></td>
      <td><p>Caption of checkbox</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.ButtonTextAlign.html">ButtonTextAlign</a></td>
      <td><span class="parametername">nAlign</span></td>
      <td><p>Aligment of text</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.CheckBoxPicture.html">CheckBoxPicture</a></td>
      <td><span class="parametername">pict</span></td>
      <td><p>picture of checkbox</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">bKeyDown</span></td>
      <td><p>Whether key is pressing down</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">bMouseDown</span></td>
      <td><p>Whether mouse is pressing down</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">bMouseOver</span></td>
      <td><p>Whether mouse is hovering</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Picture.html">Picture</a></td>
      <td><span class="parametername">backpict</span></td>
      <td><p>Background picture of check box</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.stringformat">StringFormat</a></td>
      <td><span class="parametername">fmt</span></td>
      <td><p>Formatter of text</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">bLocked</span></td>
      <td><p>Whether it is locked</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">pictWidth</span></td>
      <td><p>Specifies width of picture</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">pictHeight</span></td>
      <td><p>Specifies height of picture</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.VisualStyles.html">VisualStyles</a></td>
      <td><span class="parametername">visualStyles</span></td>
      <td><p>Specifies if visual styles are applied to the 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">rightToLeft</span></td>
      <td><p>Specifies whether system is right to left</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.FocusRectangle.html">FocusRectangle</a></td>
      <td><span class="parametername">focusRect</span></td>
      <td><p>Specifies whether to show focus rectangle or not</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">isGrayScale</span></td>
      <td><p>Whether painting in grayscale mode</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></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">pictureZoomEffect</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
