DoPaint(Graphics,Rectangle,Color,Color,Font,HorizontalAlignment,VerticalAlignment,Boolean,Boolean,String,String,ButtonTextAlign,TextOrientation,Boolean,Int32,Color,Color,Image,Image,Boolean,Boolean) Method
In This Topic
Paints the cell with the button.
Syntax
'Declaration
Public Overloads Shared Sub DoPaint( _
ByVal As Graphics, _
ByVal As Rectangle, _
ByVal As Color, _
ByVal As Color, _
ByVal As Font, _
ByVal As HorizontalAlignment, _
ByVal As VerticalAlignment, _
ByVal As Boolean, _
ByVal As Boolean, _
ByVal As String, _
ByVal As String, _
ByVal As ButtonTextAlign, _
ByVal As TextOrientation, _
ByVal As Boolean, _
ByVal shadowSize As Integer, _
ByVal As Color, _
ByVal As Color, _
ByVal As Image, _
ByVal As Image, _
ByVal As Boolean, _
ByVal As Boolean _
)
'Usage
Dim g As Graphics
Dim r As Rectangle
Dim backColor As Color
Dim foreColor As Color
Dim font As Font
Dim halign As HorizontalAlignment
Dim valign As VerticalAlignment
Dim pressed As Boolean
Dim focus As Boolean
Dim text As String
Dim textDown As String
Dim nAlign As ButtonTextAlign
Dim textOrientation As TextOrientation
Dim wordWrap As Boolean
Dim shadowSize As Integer
Dim darkColor As Color
Dim lightColor As Color
Dim pictUp As Image
Dim pictDown As Image
Dim bLocked As Boolean
Dim rightToLeft As Boolean
FpButton.DoPaint(g, r, backColor, foreColor, font, halign, valign, pressed, focus, text, textDown, nAlign, textOrientation, wordWrap, shadowSize, darkColor, lightColor, pictUp, pictDown, bLocked, rightToLeft)
public static void DoPaint(
Graphics ,
Rectangle ,
Color ,
Color ,
Font ,
HorizontalAlignment ,
VerticalAlignment ,
bool ,
bool ,
string ,
string ,
ButtonTextAlign ,
TextOrientation ,
bool ,
int shadowSize,
Color ,
Color ,
Image ,
Image ,
bool ,
bool
)
Parameters
- g
- GDI+ graphics surface
- r
- Image rectangle
- backColor
- Background color
- foreColor
- Foreground (text) color
- font
- Font of text
- halign
- Horizontal alignment
- valign
- Vertical alignment
- pressed
- Whether the button is pressed
- focus
- Whether it is in focus
- text
- Text of button when not pressed
- textDown
- Text of pressed button
- nAlign
- Alignment of text with respect to image in button
- textOrientation
- Orientation of text
- wordWrap
- Whether text wraps to multiple lines
- shadowSize
- Size of the shadow around the button
- darkColor
- Color of the shadow (dark part of button)
- lightColor
- Color of light part of button
- pictUp
- Picture (image) when button is not pressed
- pictDown
- Picture (image) when button is pressed
- bLocked
- Whether the cell is locked
- rightToLeft
- Whether right-to-left layout
See Also