Spread Windows Forms 17
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread.CellType Namespace / ListBoxCellType Class / DoPaint Method / DoPaint(Graphics,Rectangle,Color,Color,Font,HorizontalAlignment,VerticalAlignment,ArrayList,Int32,Boolean,ImageList,Int32,Boolean,SelectionMode) Method
Graphics device interface for painting the column header cell
Rectangle around the column header cell
Background color for the column header cell
Text color for the column header cell
Font for the column header cell
Horizontal alignment of text in the column header cell
Vertical alignment of text in the column header cell
List of items
Selected item from the list
Whether the list is locked
List of pictures that correspond with the items
Height in pixels of each item
Whether to draw the object with a right-to-left orientation
SelectionMode of ListBox


In This Topic
    DoPaint(Graphics,Rectangle,Color,Color,Font,HorizontalAlignment,VerticalAlignment,ArrayList,Int32,Boolean,ImageList,Int32,Boolean,SelectionMode) Method
    In This Topic
    Paints the list box cell.
    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 radioList As ArrayList, _
       ByVal selectedItem As Integer, _
       ByVal bLocked As Boolean, _
       ByVal imgList As ImageList, _
       ByVal itemHeight As Integer, _
       ByVal rightToLeft As Boolean, _
       ByVal selMode As SelectionMode _
    ) 
    '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 radioList As ArrayList
    Dim selectedItem As Integer
    Dim bLocked As Boolean
    Dim imgList As ImageList
    Dim itemHeight As Integer
    Dim rightToLeft As Boolean
    Dim selMode As SelectionMode
     
    ListBoxCellType.DoPaint(g, r, backColor, foreColor, font, halign, valign, radioList, selectedItem, bLocked, imgList, itemHeight, rightToLeft, selMode)

    Parameters

    g
    Graphics device interface for painting the column header cell
    r
    Rectangle around the column header cell
    backColor
    Background color for the column header cell
    foreColor
    Text color for the column header cell
    font
    Font for the column header cell
    halign
    Horizontal alignment of text in the column header cell
    valign
    Vertical alignment of text in the column header cell
    radioList
    List of items
    selectedItem
    Selected item from the list
    bLocked
    Whether the list is locked
    imgList
    List of pictures that correspond with the items
    itemHeight
    Height in pixels of each item
    rightToLeft
    Whether to draw the object with a right-to-left orientation
    selMode
    SelectionMode of ListBox
    See Also