'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)
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 )
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