# FarPoint.Win.FpMultiOption.DoPaint

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_FpMultiOption_DoPaint_" data-uid="FarPoint.Win.FpMultiOption.DoPaint*">DoPaint Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_FpMultiOption_DoPaint_" data-uid="FarPoint.Win.FpMultiOption.DoPaint*"></a>
<h4 id="FarPoint_Win_FpMultiOption_DoPaint_System_Drawing_Graphics_System_Drawing_Rectangle_System_Drawing_Color_System_Drawing_Color_System_Drawing_Font_FarPoint_Win_HorizontalAlignment_FarPoint_Win_VerticalAlignment_FarPoint_Win_ButtonTextAlign_FarPoint_Win_RadioOrientation_FarPoint_Win_RadioPicture_System_Collections_ArrayList_System_Int32_System_Int32_System_Boolean_System_Boolean_FarPoint_Win_Picture_System_Boolean_System_Boolean_" data-uid="FarPoint.Win.FpMultiOption.DoPaint(System.Drawing.Graphics,System.Drawing.Rectangle,System.Drawing.Color,System.Drawing.Color,System.Drawing.Font,FarPoint.Win.HorizontalAlignment,FarPoint.Win.VerticalAlignment,FarPoint.Win.ButtonTextAlign,FarPoint.Win.RadioOrientation,FarPoint.Win.RadioPicture,System.Collections.ArrayList,System.Int32,System.Int32,System.Boolean,System.Boolean,FarPoint.Win.Picture,System.Boolean,System.Boolean)">DoPaint(Graphics, Rectangle, Color, Color, Font, HorizontalAlignment, VerticalAlignment, ButtonTextAlign, RadioOrientation, RadioPicture, ArrayList, int, int, bool, bool, Picture, bool, bool)</h4>
<div class="markdown level1 summary"><p>Paints the multiple options buttons with default width and height.</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, Font font, HorizontalAlignment halign, VerticalAlignment valign, ButtonTextAlign nAlign, RadioOrientation nOrientation, RadioPicture radioPicture, ArrayList radioList, int selectedItem, int focusItem, bool pressed, bool mnemonics, Picture backpict, bool bLocked, bool compact = false)</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, font As Font, halign As HorizontalAlignment, valign As VerticalAlignment, nAlign As ButtonTextAlign, nOrientation As RadioOrientation, radioPicture As RadioPicture, radioList As ArrayList, selectedItem As Integer, focusItem As Integer, pressed As Boolean, mnemonics As Boolean, backpict As Picture, bLocked As Boolean, Optional compact As Boolean = False)</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="https://learn.microsoft.com/dotnet/api/system.drawing.font">Font</a></td>
      <td><span class="parametername">font</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.HorizontalAlignment.html">HorizontalAlignment</a></td>
      <td><span class="parametername">halign</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.VerticalAlignment.html">VerticalAlignment</a></td>
      <td><span class="parametername">valign</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.RadioOrientation.html">RadioOrientation</a></td>
      <td><span class="parametername">nOrientation</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.RadioPicture.html">RadioPicture</a></td>
      <td><span class="parametername">radioPicture</span></td>
      <td></td>
    </tr>
    <tr>
      <td><span class="xref">ArrayList</span></td>
      <td><span class="parametername">radioList</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">selectedItem</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">focusItem</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">pressed</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">mnemonics</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.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.boolean">bool</a></td>
      <td><span class="parametername">compact</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_FpMultiOption_DoPaint_" data-uid="FarPoint.Win.FpMultiOption.DoPaint*"></a>
<h4 id="FarPoint_Win_FpMultiOption_DoPaint_System_Drawing_Graphics_System_Drawing_Rectangle_System_Drawing_Color_System_Drawing_Color_System_Drawing_Font_FarPoint_Win_HorizontalAlignment_FarPoint_Win_VerticalAlignment_FarPoint_Win_ButtonTextAlign_FarPoint_Win_RadioOrientation_FarPoint_Win_RadioPicture_System_Collections_ArrayList_System_Int32_System_Int32_System_Boolean_System_Boolean_FarPoint_Win_Picture_System_Boolean_System_Int32_System_Int32_System_Int32_FarPoint_Win_VisualStyles_System_Boolean_System_Boolean_" data-uid="FarPoint.Win.FpMultiOption.DoPaint(System.Drawing.Graphics,System.Drawing.Rectangle,System.Drawing.Color,System.Drawing.Color,System.Drawing.Font,FarPoint.Win.HorizontalAlignment,FarPoint.Win.VerticalAlignment,FarPoint.Win.ButtonTextAlign,FarPoint.Win.RadioOrientation,FarPoint.Win.RadioPicture,System.Collections.ArrayList,System.Int32,System.Int32,System.Boolean,System.Boolean,FarPoint.Win.Picture,System.Boolean,System.Int32,System.Int32,System.Int32,FarPoint.Win.VisualStyles,System.Boolean,System.Boolean)">DoPaint(Graphics, Rectangle, Color, Color, Font, HorizontalAlignment, VerticalAlignment, ButtonTextAlign, RadioOrientation, RadioPicture, ArrayList, int, int, bool, bool, Picture, bool, int, int, int, VisualStyles, bool, bool)</h4>
<div class="markdown level1 summary"><p>Paints the multiple options buttons.</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, Font font, HorizontalAlignment halign, VerticalAlignment valign, ButtonTextAlign nAlign, RadioOrientation nOrientation, RadioPicture radioPicture, ArrayList radioList, int selectedItem, int focusItem, bool pressed, bool mnemonics, Picture backpict, bool bLocked, int pictWidth, int pictHeight, int mouseItem, VisualStyles visualStyles, bool rightToLeft, bool compact = false)</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, font As Font, halign As HorizontalAlignment, valign As VerticalAlignment, nAlign As ButtonTextAlign, nOrientation As RadioOrientation, radioPicture As RadioPicture, radioList As ArrayList, selectedItem As Integer, focusItem As Integer, pressed As Boolean, mnemonics As Boolean, backpict As Picture, bLocked As Boolean, pictWidth As Integer, pictHeight As Integer, mouseItem As Integer, visualStyles As VisualStyles, rightToLeft As Boolean, Optional compact As Boolean = False)</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="https://learn.microsoft.com/dotnet/api/system.drawing.font">Font</a></td>
      <td><span class="parametername">font</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.HorizontalAlignment.html">HorizontalAlignment</a></td>
      <td><span class="parametername">halign</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.VerticalAlignment.html">VerticalAlignment</a></td>
      <td><span class="parametername">valign</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.RadioOrientation.html">RadioOrientation</a></td>
      <td><span class="parametername">nOrientation</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.RadioPicture.html">RadioPicture</a></td>
      <td><span class="parametername">radioPicture</span></td>
      <td></td>
    </tr>
    <tr>
      <td><span class="xref">ArrayList</span></td>
      <td><span class="parametername">radioList</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">selectedItem</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">focusItem</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">pressed</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">mnemonics</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.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="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">mouseItem</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.boolean">bool</a></td>
      <td><span class="parametername">compact</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_FpMultiOption_DoPaint_" data-uid="FarPoint.Win.FpMultiOption.DoPaint*"></a>
<h4 id="FarPoint_Win_FpMultiOption_DoPaint_System_Drawing_Graphics_System_Drawing_Rectangle_System_Drawing_Color_System_Drawing_Color_System_Drawing_Font_FarPoint_Win_HorizontalAlignment_FarPoint_Win_VerticalAlignment_FarPoint_Win_ButtonTextAlign_FarPoint_Win_RadioOrientation_FarPoint_Win_RadioPicture_System_Collections_ArrayList_System_Int32_System_Int32_System_Boolean_System_Boolean_FarPoint_Win_Picture_System_Boolean_System_Int32_System_Int32_System_Int32_FarPoint_Win_VisualStyles_System_Boolean_System_Boolean_System_Boolean_" data-uid="FarPoint.Win.FpMultiOption.DoPaint(System.Drawing.Graphics,System.Drawing.Rectangle,System.Drawing.Color,System.Drawing.Color,System.Drawing.Font,FarPoint.Win.HorizontalAlignment,FarPoint.Win.VerticalAlignment,FarPoint.Win.ButtonTextAlign,FarPoint.Win.RadioOrientation,FarPoint.Win.RadioPicture,System.Collections.ArrayList,System.Int32,System.Int32,System.Boolean,System.Boolean,FarPoint.Win.Picture,System.Boolean,System.Int32,System.Int32,System.Int32,FarPoint.Win.VisualStyles,System.Boolean,System.Boolean,System.Boolean)">DoPaint(Graphics, Rectangle, Color, Color, Font, HorizontalAlignment, VerticalAlignment, ButtonTextAlign, RadioOrientation, RadioPicture, ArrayList, int, int, bool, bool, Picture, bool, int, int, int, VisualStyles, bool, bool, bool)</h4>
<div class="markdown level1 summary"><p>Paints the multiple options buttons.</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, Font font, HorizontalAlignment halign, VerticalAlignment valign, ButtonTextAlign nAlign, RadioOrientation nOrientation, RadioPicture radioPicture, ArrayList radioList, int selectedItem, int focusItem, bool pressed, bool mnemonics, Picture backpict, bool bLocked, int pictWidth, int pictHeight, int mouseItem, VisualStyles visualStyles, bool rightToLeft, bool isGrayScale, bool compact = false)</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, font As Font, halign As HorizontalAlignment, valign As VerticalAlignment, nAlign As ButtonTextAlign, nOrientation As RadioOrientation, radioPicture As RadioPicture, radioList As ArrayList, selectedItem As Integer, focusItem As Integer, pressed As Boolean, mnemonics As Boolean, backpict As Picture, bLocked As Boolean, pictWidth As Integer, pictHeight As Integer, mouseItem As Integer, visualStyles As VisualStyles, rightToLeft As Boolean, isGrayScale As Boolean, Optional compact As Boolean = False)</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>Image 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="https://learn.microsoft.com/dotnet/api/system.drawing.font">Font</a></td>
      <td><span class="parametername">font</span></td>
      <td><p>Font of the text</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.HorizontalAlignment.html">HorizontalAlignment</a></td>
      <td><span class="parametername">halign</span></td>
      <td><p>Horizontal alignment of the control</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.VerticalAlignment.html">VerticalAlignment</a></td>
      <td><span class="parametername">valign</span></td>
      <td><p>Vertical alignment of the control</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.RadioOrientation.html">RadioOrientation</a></td>
      <td><span class="parametername">nOrientation</span></td>
      <td><p>Specifies the orientation of the option buttons in the control.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.RadioPicture.html">RadioPicture</a></td>
      <td><span class="parametername">radioPicture</span></td>
      <td><p>Represents the pictures for the different option button states.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">ArrayList</span></td>
      <td><span class="parametername">radioList</span></td>
      <td><p>List of radio</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">selectedItem</span></td>
      <td><p>Index of selected item in list</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">focusItem</span></td>
      <td><p>Index of of focused item in list</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">pressed</span></td>
      <td><p>Whether radio is pressed</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">mnemonics</span></td>
      <td><p>Whether nemonics is on/off</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.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="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">mouseItem</span></td>
      <td><p>Index of item on mouse position</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>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="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.boolean">bool</a></td>
      <td><span class="parametername">compact</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
