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 As Graphics, _
ByVal As Rectangle, _
ByVal As Color, _
ByVal As Color, _
ByVal As Font, _
ByVal As HorizontalAlignment, _
ByVal As VerticalAlignment, _
ByVal As ArrayList, _
ByVal As Array, _
ByVal As Boolean, _
ByVal As ImageList, _
ByVal As Integer, _
ByVal As Boolean, _
ByVal 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)
public static void DoPaint(
Graphics ,
Rectangle ,
Color ,
Color ,
Font ,
HorizontalAlignment ,
VerticalAlignment ,
ArrayList ,
Array ,
bool ,
ImageList ,
int ,
bool ,
SelectionMode
)
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