'Declaration
Public Overloads Shared Sub DoPaint( _ ByVal g As Graphics, _ ByVal r As Rectangle, _ ByVal backColor As Color, _ ByVal foreColor As Color, _ ByVal font As Font, _ ByVal halign As HorizontalAlignment, _ ByVal valign As VerticalAlignment, _ ByVal nAlign As ButtonTextAlign, _ ByVal nOrientation As RadioOrientation, _ ByVal radioPicture As RadioPicture, _ ByVal radioList As ArrayList, _ ByVal selectedItem As Integer, _ ByVal focusItem As Integer, _ ByVal pressed As Boolean, _ ByVal mnemonics As Boolean, _ ByVal backpict As Picture, _ ByVal bLocked As Boolean, _ ByVal pictWidth As Integer, _ ByVal pictHeight As Integer, _ ByVal mouseItem As Integer, _ ByVal visualStyles As VisualStyles, _ ByVal rightToLeft As Boolean, _ ByVal isGrayScale As Boolean, _ Optional ByVal compact 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 nAlign As ButtonTextAlign Dim nOrientation As RadioOrientation Dim radioPicture As RadioPicture Dim radioList As ArrayList Dim selectedItem As Integer Dim focusItem As Integer Dim pressed As Boolean Dim mnemonics As Boolean Dim backpict As Picture Dim bLocked As Boolean Dim pictWidth As Integer Dim pictHeight As Integer Dim mouseItem As Integer Dim visualStyles As VisualStyles Dim rightToLeft As Boolean Dim isGrayScale As Boolean Dim compact As Boolean FpMultiOption.DoPaint(g, r, backColor, foreColor, font, halign, valign, nAlign, nOrientation, radioPicture, radioList, selectedItem, focusItem, pressed, mnemonics, backpict, bLocked, pictWidth, pictHeight, mouseItem, visualStyles, rightToLeft, isGrayScale, compact)
public static void DoPaint( Graphics g, Rectangle r, Color backColor, Color foreColor, Font font, HorizontalAlignment halign, VerticalAlignment valign, ButtonTextAlign nAlign, RadioOrientation nOrientation, RadioPicture radioPicture, ArrayList radioList, int selectedItem, int focusItem, bool pressed, bool mnemonics, Picture backpict, bool bLocked, int pictWidth, int pictHeight, int mouseItem, VisualStyles visualStyles, bool rightToLeft, bool isGrayScale, bool compact )
Parameters
- g
- GDI+ grphics surface
- r
- Image rectangle
- backColor
- Background color of control
- foreColor
- Foreground (text) color of control
- font
- Font of the text
- halign
- Horizontal alignment of the control
- valign
- Vertical alignment of the control
- nAlign
- Aligment of text
- nOrientation
- Specifies the orientation of the option buttons in the control.
- radioPicture
- Represents the pictures for the different option button states.
- radioList
- List of radio
- selectedItem
- Index of selected item in list
- focusItem
- Index of of focused item in list
- pressed
- Whether radio is pressed
- mnemonics
- Whether nemonics is on/off
- backpict
- Background picture of check box
- bLocked
- Whether it is locked
- pictWidth
- Specifies width of picture
- pictHeight
- Specifies height of picture
- mouseItem
- Index of item on mouse position
- visualStyles
- if visual styles are applied to the control
- rightToLeft
- Specifies whether system is right to left
- isGrayScale
- Whether painting in grayscale mode
- compact