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 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, _
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 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)
public static void DoPaint(
Graphics ,
Rectangle ,
Color ,
Color ,
Font ,
HorizontalAlignment ,
VerticalAlignment ,
ArrayList ,
int ,
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
- 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