[]
Paints the cell with the button.
public static void DoPaint(Graphics g, Rectangle r, Color backColor, Color foreColor, Font font, HorizontalAlignment halign, VerticalAlignment valign, bool pressed, bool focus, string text, string textDown, ButtonTextAlign nAlign, TextOrientation textOrientation, bool wordWrap, int shadowSize, Color darkColor, Color lightColor, Image pictUp, Image pictDown, bool bLocked, bool rightToLeft)
Public Shared Sub DoPaint(g As Graphics, r As Rectangle, backColor As Color, foreColor As Color, font As Font, halign As HorizontalAlignment, valign As VerticalAlignment, pressed As Boolean, focus As Boolean, text As String, textDown As String, nAlign As ButtonTextAlign, textOrientation As TextOrientation, wordWrap As Boolean, shadowSize As Integer, darkColor As Color, lightColor As Color, pictUp As Image, pictDown As Image, bLocked As Boolean, rightToLeft As Boolean)
Type | Name | Description |
---|---|---|
Graphics | g | GDI+ graphics surface |
Rectangle | r | Image rectangle |
Color | backColor | Background color |
Color | foreColor | Foreground (text) color |
Font | font | Font of text |
HorizontalAlignment | halign | Horizontal alignment |
VerticalAlignment | valign | Vertical alignment |
bool | pressed | Whether the button is pressed |
bool | focus | Whether it is in focus |
string | text | Text of button when not pressed |
string | textDown | Text of pressed button |
ButtonTextAlign | nAlign | Alignment of text with respect to image in button |
TextOrientation | textOrientation | Orientation of text |
bool | wordWrap | Whether text wraps to multiple lines |
int | shadowSize | Size of the shadow around the button |
Color | darkColor | Color of the shadow (dark part of button) |
Color | lightColor | Color of light part of button |
Image | pictUp | Picture (image) when button is not pressed |
Image | pictDown | Picture (image) when button is pressed |
bool | bLocked | Whether the cell is locked |
bool | rightToLeft | Whether right-to-left layout |
Paints the cell with the button.
public static void DoPaint(Graphics g, Rectangle r, Color backColor, Color foreColor, Font font, HorizontalAlignment halign, VerticalAlignment valign, bool pressed, bool focus, string text, string textDown, ButtonTextAlign nAlign, TextOrientation textOrientation, bool wordWrap, int shadowSize, Color darkColor, Color lightColor, Image pictUp, Image pictDown, bool bLocked, HotkeyPrefix prefix, VisualStyles style, bool mouseOver)
Public Shared Sub DoPaint(g As Graphics, r As Rectangle, backColor As Color, foreColor As Color, font As Font, halign As HorizontalAlignment, valign As VerticalAlignment, pressed As Boolean, focus As Boolean, text As String, textDown As String, nAlign As ButtonTextAlign, textOrientation As TextOrientation, wordWrap As Boolean, shadowSize As Integer, darkColor As Color, lightColor As Color, pictUp As Image, pictDown As Image, bLocked As Boolean, prefix As HotkeyPrefix, style As VisualStyles, mouseOver As Boolean)
Type | Name | Description |
---|---|---|
Graphics | g | GDI+ graphics surface |
Rectangle | r | Image rectangle |
Color | backColor | Background color |
Color | foreColor | Foreground (text) color |
Font | font | Font of text |
HorizontalAlignment | halign | Horizontal alignment |
VerticalAlignment | valign | Vertical alignment |
bool | pressed | Whether the button is pressed |
bool | focus | Whether it is in focus |
string | text | Text of button when not pressed |
string | textDown | Text of pressed button |
ButtonTextAlign | nAlign | Alignment of text with respect to image in button |
TextOrientation | textOrientation | Orientation of text |
bool | wordWrap | Whether text wraps to multiple lines |
int | shadowSize | Size of the shadow around the button |
Color | darkColor | Color of the shadow (dark part of button) |
Color | lightColor | Color of light part of button |
Image | pictUp | Picture (image) when button is not pressed |
Image | pictDown | Picture (image) when button is pressed |
bool | bLocked | Whether the cell is locked |
HotkeyPrefix | prefix | Whether the ampersand character underlines text |
VisualStyles | style | Determines the button style |
bool | mouseOver | True if mouse is over button |
Paints.
public static void DoPaint(FpButtonPaintArgs args)
Public Shared Sub DoPaint(args As FpButtonPaintArgs)
Type | Name | Description |
---|---|---|
FpButtonPaintArgs | args | Paint arguments |