ListBoxDrawItemEventArgs(GraphicsCache, AppearanceObject, Rectangle, Object, Int32, DrawItemState, Boolean) Constructor
Initializes a new instance of the ListBoxDrawItemEventArgs class with the specified settings.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v24.2.dll
NuGet Package: DevExpress.Win.Navigation
#Declaration
public ListBoxDrawItemEventArgs(
GraphicsCache cache,
AppearanceObject appearance,
Rectangle bounds,
object item,
int index,
DrawItemState state,
bool allowDrawSkinBackground = true
)
#Parameters
Name | Type | Description |
---|---|---|
cache | Graphics |
A Graphics |
appearance | Appearance |
An Appearance |
bounds | Rectangle | A Rectangle structure that specifies the bounding rectangle of the item. This value is assigned to the List |
item | Object | An Object that is the value of the item. This value is assigned to the List |
index | Int32 | An integer value that specifies the index of the item. This value is assigned to the List |
state | Draw |
A Draw |
#Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
allow |
Boolean | True | A Boolean value that specifies whether the item background is colored according to the currently applied skin, or based on the specified appearance settings. This value is assigned to the List |