Spread Windows Forms 18
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,Boolean,Single,Boolean) Method
GDI+ grphics surface
Check box rectangle
Background color of control
Foreground (text) color of control
Horizontal alignment of the picture
Vertical alignment of the picture
Specifies the value of the check box.
Whether it is focused
Font of the text
Text when check value is true
Text when check value is false
Text when check value is intermediate
Caption of checkbox
Aligment of text
picture of checkbox
Whether key is pressing down
Whether mouse is pressing down
Whether mouse is hovering
Background picture of check box
Formatter of text
Whether it is locked
Specifies width of picture
Specifies height of picture
Specifies if visual styles are applied to the control
Specifies whether system is right to left
Specifies whether to show focus rectangle or not
Whether painting in grayscale mode


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,Boolean,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 isGrayScale As Boolean, _
       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 isGrayScale As Boolean
    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, isGrayScale, zoomFactor, pictureZoomEffect)

    Parameters

    g
    GDI+ grphics surface
    r
    Check box rectangle
    backColor
    Background color of control
    foreColor
    Foreground (text) color of control
    pictAlignH
    Horizontal alignment of the picture
    pictAlignV
    Vertical alignment of the picture
    paintVal
    Specifies the value of the check box.
    bFocus
    Whether it is focused
    f
    Font of the text
    textTrue
    Text when check value is true
    textFalse
    Text when check value is false
    textGray
    Text when check value is intermediate
    caption
    Caption of checkbox
    nAlign
    Aligment of text
    pict
    picture of checkbox
    bKeyDown
    Whether key is pressing down
    bMouseDown
    Whether mouse is pressing down
    bMouseOver
    Whether mouse is hovering
    backpict
    Background picture of check box
    fmt
    Formatter of text
    bLocked
    Whether it is locked
    pictWidth
    Specifies width of picture
    pictHeight
    Specifies height of picture
    visualStyles
    Specifies if visual styles are applied to the control
    rightToLeft
    Specifies whether system is right to left
    focusRect
    Specifies whether to show focus rectangle or not
    isGrayScale
    Whether painting in grayscale mode
    zoomFactor
    pictureZoomEffect
    See Also