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
Declaration
public ListBoxDrawItemEventArgs(
GraphicsCache cache,
AppearanceObject appearance,
Rectangle bounds,
object item,
int index,
DrawItemState state,
bool allowDrawSkinBackground = true
)
Parameters
Name | Type | Description |
---|---|---|
cache | GraphicsCache | A GraphicsCache object that is a storage for pens, fonts and brushes used during painting. |
appearance | AppearanceObject | An AppearanceObject object that stores appearance settings used to paint the item. This value is assigned to the ListBoxDrawItemEventArgs.Appearance property. |
bounds | Rectangle | A Rectangle structure that specifies the bounding rectangle of the item. This value is assigned to the ListBoxDrawItemEventArgs.Bounds property. |
item | Object | An Object that is the value of the item. This value is assigned to the ListBoxDrawItemEventArgs.Item property. |
index | Int32 | An integer value that specifies the index of the item. This value is assigned to the ListBoxDrawItemEventArgs.Index property. |
state | DrawItemState | A DrawItemState enumeration value that specifies the state of the item. This value is assigned to the ListBoxDrawItemEventArgs.State property. |
Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
allowDrawSkinBackground | 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 ListBoxDrawItemEventArgs.AllowDrawSkinBackground property. |