# FarPoint.Win.FpSlider.DoPaint

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_FpSlider_DoPaint_" data-uid="FarPoint.Win.FpSlider.DoPaint*">DoPaint Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_FpSlider_DoPaint_" data-uid="FarPoint.Win.FpSlider.DoPaint*"></a>
<h4 id="FarPoint_Win_FpSlider_DoPaint_System_Drawing_Graphics_System_Drawing_Rectangle_System_Drawing_Color_System_Drawing_Color_System_Int32_System_Boolean_System_Drawing_Color_FarPoint_Win_SliderOrientation_System_Int32_System_Int32_System_Int32_FarPoint_Win_Picture_System_Int32_System_Int32_FarPoint_Win_Picture_System_Drawing_Color_FarPoint_Win_Picture_System_Boolean_System_Boolean_System_Boolean_FarPoint_Win_VisualStyles_System_Drawing_Color_System_Boolean_System_Int32_" data-uid="FarPoint.Win.FpSlider.DoPaint(System.Drawing.Graphics,System.Drawing.Rectangle,System.Drawing.Color,System.Drawing.Color,System.Int32,System.Boolean,System.Drawing.Color,FarPoint.Win.SliderOrientation,System.Int32,System.Int32,System.Int32,FarPoint.Win.Picture,System.Int32,System.Int32,FarPoint.Win.Picture,System.Drawing.Color,FarPoint.Win.Picture,System.Boolean,System.Boolean,System.Boolean,FarPoint.Win.VisualStyles,System.Drawing.Color,System.Boolean,System.Int32)">DoPaint(Graphics, Rectangle, Color, Color, int, bool, Color, SliderOrientation, int, int, int, Picture, int, int, Picture, Color, Picture, bool, bool, bool, VisualStyles, Color, bool, int)</h4>
<div class="markdown level1 summary"><p>Paints the slider control.</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, int value, bool focus, Color knobColor, SliderOrientation orient, int minimum, int maximum, int tickSpacing, Picture backpict, int knobWidth, int trackWidth, Picture knobPicture, Color trackColor, Picture trackPicture, bool bLocked, bool valueIsAdjusting, bool ptInKnob, VisualStyles visualStyles, Color tickColor, bool rightToLeft, int tickLength)</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, value As Integer, focus As Boolean, knobColor As Color, orient As SliderOrientation, minimum As Integer, maximum As Integer, tickSpacing As Integer, backpict As Picture, knobWidth As Integer, trackWidth As Integer, knobPicture As Picture, trackColor As Color, trackPicture As Picture, bLocked As Boolean, valueIsAdjusting As Boolean, ptInKnob As Boolean, visualStyles As VisualStyles, tickColor As Color, rightToLeft As Boolean, tickLength 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>GDI+ graphics drawing 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</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</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>Value of slider 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">focus</span></td>
      <td><p>Whether the control has focus</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">knobColor</span></td>
      <td><p>Color of slider knob</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.SliderOrientation.html">SliderOrientation</a></td>
      <td><span class="parametername">orient</span></td>
      <td><p>Orientation of slider</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">minimum</span></td>
      <td><p>Minimum value of slider</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">maximum</span></td>
      <td><p>Maximum value of slider</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">tickSpacing</span></td>
      <td><p>Space between slider tick marks</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 slider</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">knobWidth</span></td>
      <td><p>Width in pixels of slider knob</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">trackWidth</span></td>
      <td><p>Overall slider track width</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Picture.html">Picture</a></td>
      <td><span class="parametername">knobPicture</span></td>
      <td><p>Picture (image) for slider knob</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">trackColor</span></td>
      <td><p>Color of slider track</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Picture.html">Picture</a></td>
      <td><span class="parametername">trackPicture</span></td>
      <td><p>Picture (image) for slider track</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 the control is locked</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">valueIsAdjusting</span></td>
      <td><p>True if the slider knob is moving</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">ptInKnob</span></td>
      <td><p>True if mouse is over the knob</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 how visual style is applied to the 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">tickColor</span></td>
      <td><p>Color of the slider tick marks</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>True to paint right to left</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">tickLength</span></td>
      <td><p>Width of the slider ticks</p>
</td>
    </tr>
  </tbody>
</table>
</div>
