Spread Windows Forms 17
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread.CellType Namespace / FpList Class / DrawListBoxItem Method / DrawListBoxItem(String,ImageList,DrawItemEventArgs,Boolean,SelectionMode,Color,Color) Method
Text of the item in the list box
List of images for the list box
DrawItem event that contains the item
Whether to draw the object with a right to left orientation
SelectionMode of the ListBox
The backcolor for the item
The forecolor for the item


In This Topic
    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 strText As String, _
       ByVal images As ImageList, _
       ByVal e As DrawItemEventArgs, _
       ByVal rightToLeft As Boolean, _
       ByVal selMode As SelectionMode, _
       ByVal itemBackColor As Color, _
       ByVal itemForeColor 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