Spread Windows Forms 17
FarPoint.Win Assembly / FarPoint.Win Namespace / FpCheckBox Class / DoPaint Method / DoPaint(Graphics,Rectangle,Color,Color,HorizontalAlignment,VerticalAlignment,CheckValue,Boolean,Font,String,String,String,String,ButtonTextAlign,CheckBoxPicture,Boolean,Boolean,Boolean,Picture,StringFormat,Boolean,Int32,Int32,VisualStyles,Boolean,FocusRectangle,Single,Boolean) Method


In This Topic
    DoPaint(Graphics,Rectangle,Color,Color,HorizontalAlignment,VerticalAlignment,CheckValue,Boolean,Font,String,String,String,String,ButtonTextAlign,CheckBoxPicture,Boolean,Boolean,Boolean,Picture,StringFormat,Boolean,Int32,Int32,VisualStyles,Boolean,FocusRectangle,Single,Boolean) Method
    In This Topic
    Paints the check box.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Sub DoPaint( _
       ByVal g As Graphics, _
       ByVal r As Rectangle, _
       ByVal backColor As Color, _
       ByVal foreColor As Color, _
       ByVal pictAlignH As HorizontalAlignment, _
       ByVal pictAlignV As VerticalAlignment, _
       ByVal paintVal As CheckValue, _
       ByVal bFocus As Boolean, _
       ByVal f As Font, _
       ByVal textTrue As String, _
       ByVal textFalse As String, _
       ByVal textGray As String, _
       ByVal caption As String, _
       ByVal nAlign As ButtonTextAlign, _
       ByVal pict As CheckBoxPicture, _
       ByVal bKeyDown As Boolean, _
       ByVal bMouseDown As Boolean, _
       ByVal bMouseOver As Boolean, _
       ByVal backpict As Picture, _
       ByVal fmt As StringFormat, _
       ByVal bLocked As Boolean, _
       ByVal pictWidth As Integer, _
       ByVal pictHeight As Integer, _
       ByVal visualStyles As VisualStyles, _
       ByVal rightToLeft As Boolean, _
       ByVal focusRect As FocusRectangle, _
       ByVal zoomFactor As Single, _
       ByVal pictureZoomEffect As Boolean _
    ) 
    'Usage
     
    
    Dim g As Graphics
    Dim r As Rectangle
    Dim backColor As Color
    Dim foreColor As Color
    Dim pictAlignH As HorizontalAlignment
    Dim pictAlignV As VerticalAlignment
    Dim paintVal As CheckValue
    Dim bFocus As Boolean
    Dim f As Font
    Dim textTrue As String
    Dim textFalse As String
    Dim textGray As String
    Dim caption As String
    Dim nAlign As ButtonTextAlign
    Dim pict As CheckBoxPicture
    Dim bKeyDown As Boolean
    Dim bMouseDown As Boolean
    Dim bMouseOver As Boolean
    Dim backpict As Picture
    Dim fmt As StringFormat
    Dim bLocked As Boolean
    Dim pictWidth As Integer
    Dim pictHeight As Integer
    Dim visualStyles As VisualStyles
    Dim rightToLeft As Boolean
    Dim focusRect As FocusRectangle
    Dim zoomFactor As Single
    Dim pictureZoomEffect As Boolean
     
    FpCheckBox.DoPaint(g, r, backColor, foreColor, pictAlignH, pictAlignV, paintVal, bFocus, f, textTrue, textFalse, textGray, caption, nAlign, pict, bKeyDown, bMouseDown, bMouseOver, backpict, fmt, bLocked, pictWidth, pictHeight, visualStyles, rightToLeft, focusRect, zoomFactor, pictureZoomEffect)

    Parameters

    g
    r
    backColor
    foreColor
    pictAlignH
    pictAlignV
    paintVal
    bFocus
    f
    textTrue
    textFalse
    textGray
    caption
    nAlign
    pict
    bKeyDown
    bMouseDown
    bMouseOver
    backpict
    fmt
    bLocked
    pictWidth
    pictHeight
    visualStyles
    rightToLeft
    focusRect
    zoomFactor
    pictureZoomEffect
    See Also