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,Array,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 items 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
The selection mode indicates how the specified ListBoxCellType control is selected.


In This Topic
    DoPaint(Graphics,Rectangle,Color,Color,Font,HorizontalAlignment,VerticalAlignment,ArrayList,Array,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 selectedItems As Array, _
       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 selectedItems As Array
    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, selectedItems, 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
    selectedItems
    Selected items 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
    The selection mode indicates how the specified ListBoxCellType control is selected.
    See Also