DrawListBoxItem(String,ImageList,DrawItemEventArgs,Boolean,SelectionMode,Color,Color) Method
In This Topic
Draws one of the list box items.
Syntax
'Declaration
Public Overloads Shared Sub DrawListBoxItem( _
ByVal As String, _
ByVal As ImageList, _
ByVal As DrawItemEventArgs, _
ByVal As Boolean, _
ByVal As SelectionMode, _
ByVal As Color, _
ByVal As Color _
)
'Usage
Dim strText As String
Dim images As ImageList
Dim e As DrawItemEventArgs
Dim rightToLeft As Boolean
Dim selMode As SelectionMode
Dim itemBackColor As Color
Dim itemForeColor As Color
FpList.DrawListBoxItem(strText, images, e, rightToLeft, selMode, itemBackColor, itemForeColor)
Parameters
- strText
- Text of the item in the list box
- images
- List of images for the list box
- e
- DrawItem event that contains the item
- rightToLeft
- Whether to draw the object with a right to left orientation
- selMode
- SelectionMode of the ListBox
- itemBackColor
- The backcolor for the item
- itemForeColor
- The forecolor for the item
See Also