DoPaint(Graphics,Rectangle,Color,Color,Font,Color,String,HorizontalAlignment,VerticalAlignment,ColorPickerStyle,UnknownTextStyle,String,Boolean,Int32,Single) Method
In This Topic
Paints the cell.
Syntax
'Declaration
Public Overloads Shared Sub DoPaint( _
ByVal As Graphics, _
ByVal As Rectangle, _
ByVal As Color, _
ByVal As Color, _
ByVal As Font, _
ByVal As Color, _
ByVal As String, _
ByVal As HorizontalAlignment, _
ByVal As VerticalAlignment, _
ByVal As ColorPickerStyle, _
ByVal As UnknownTextStyle, _
ByVal As String, _
ByVal As Boolean, _
ByVal As Integer, _
ByVal As Single _
)
'Usage
Dim g As Graphics
Dim r As Rectangle
Dim backColor As Color
Dim foreColor As Color
Dim font As Font
Dim c As Color
Dim caption As String
Dim horizontalAlignment As HorizontalAlignment
Dim verticalAlignment As VerticalAlignment
Dim style As ColorPickerStyle
Dim textStyle As UnknownTextStyle
Dim unknownText As String
Dim rightToLeft As Boolean
Dim boxWidth As Integer
Dim zoomFactor As Single
FpColorPicker.DoPaint(g, r, backColor, foreColor, font, c, caption, horizontalAlignment, verticalAlignment, style, textStyle, unknownText, rightToLeft, boxWidth, zoomFactor)
public static void DoPaint(
Graphics ,
Rectangle ,
Color ,
Color ,
Font ,
Color ,
string ,
HorizontalAlignment ,
VerticalAlignment ,
ColorPickerStyle ,
UnknownTextStyle ,
string ,
bool ,
int ,
float
)
Parameters
- g
- Graphics device interface for painting the cell
- r
- Location and size of a rectangular region
- backColor
- Background color
- foreColor
- Text (foreground) color
- font
- Font
- c
- Color
- caption
- Caption text
- horizontalAlignment
- Horizontal alignment
- verticalAlignment
- Vertical alignment
- style
- Style
- textStyle
- Text Style
- unknownText
- Text for unknown color
- rightToLeft
- Whether right to left orientation
- boxWidth
- Width of the box in pixels
- zoomFactor
- The zoom factor.
See Also