[]
Draws one of the list box items.
public static void DrawListBoxItem(string strText, ImageList images, DrawItemEventArgs e, bool rightToLeft)
Public Shared Sub DrawListBoxItem(strText As String, images As ImageList, e As DrawItemEventArgs, rightToLeft As Boolean)
Type | Name | Description |
---|---|---|
string | strText | Text of the item in the list box |
ImageList | images | List of images for the list box |
DrawItemEventArgs | e | DrawItem event that contains the item |
bool | rightToLeft | Whether to draw the object with a right to left orientation |
Draws one of the list box items.
public static void DrawListBoxItem(string strText, ImageList images, DrawItemEventArgs e, bool rightToLeft, SelectionMode selMode, Color itemBackColor, Color itemForeColor)
Public Shared Sub DrawListBoxItem(strText As String, images As ImageList, e As DrawItemEventArgs, rightToLeft As Boolean, selMode As SelectionMode, itemBackColor As Color, itemForeColor As Color)
Type | Name | Description |
---|---|---|
string | strText | Text of the item in the list box |
ImageList | images | List of images for the list box |
DrawItemEventArgs | e | DrawItem event that contains the item |
bool | rightToLeft | Whether to draw the object with a right to left orientation |
SelectionMode | selMode | SelectionMode of the ListBox |
Color | itemBackColor | The backcolor for the item |
Color | itemForeColor | The forecolor for the item |