DoPaint(Graphics,Rectangle,Color,Color,Font,HorizontalAlignment,VerticalAlignment,ArrayList,Int32,Boolean,ImageList,Int32,Boolean) 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 Integer, _
ByVal As Boolean, _
ByVal As ImageList, _
ByVal As Integer, _
ByVal 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 radioList As ArrayList
Dim selectedItem As Integer
Dim bLocked As Boolean
Dim imgList As ImageList
Dim itemHeight As Integer
Dim rightToLeft As Boolean
ListBoxCellType.DoPaint(g, r, backColor, foreColor, font, halign, valign, radioList, selectedItem, bLocked, imgList, itemHeight, rightToLeft)
public static void DoPaint(
Graphics ,
Rectangle ,
Color ,
Color ,
Font ,
HorizontalAlignment ,
VerticalAlignment ,
ArrayList ,
int ,
bool ,
ImageList ,
int ,
bool
)
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
See Also