Spread Windows Forms 17
FarPoint.Win Assembly / FarPoint.Win Namespace / FpMultiOption Class / DoPaint Method / DoPaint(Graphics,Rectangle,Color,Color,Font,HorizontalAlignment,VerticalAlignment,ButtonTextAlign,RadioOrientation,RadioPicture,ArrayList,Int32,Int32,Boolean,Boolean,Picture,Boolean,Int32,Int32,Int32,VisualStyles,Boolean,Boolean,Boolean) Method
GDI+ grphics surface
Image rectangle
Background color of control
Foreground (text) color of control
Font of the text
Horizontal alignment of the control
Vertical alignment of the control
Aligment of text
Specifies the orientation of the option buttons in the control.
Represents the pictures for the different option button states.
List of radio
Index of selected item in list
Index of of focused item in list
Whether radio is pressed
Whether nemonics is on/off
Background picture of check box
Whether it is locked
Specifies width of picture
Specifies height of picture
Index of item on mouse position
if visual styles are applied to the control
Specifies whether system is right to left
Whether painting in grayscale mode


In This Topic
    DoPaint(Graphics,Rectangle,Color,Color,Font,HorizontalAlignment,VerticalAlignment,ButtonTextAlign,RadioOrientation,RadioPicture,ArrayList,Int32,Int32,Boolean,Boolean,Picture,Boolean,Int32,Int32,Int32,VisualStyles,Boolean,Boolean,Boolean) Method
    In This Topic
    Paints the multiple options buttons.
    Syntax
    '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)

    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
    See Also