RepositoryItemCheckedComboBoxEdit.MeasureListBoxItem Event

Provides the capability to change the height of an individual item.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

[DXCategory("Events")]
public event MeasureItemEventHandler MeasureListBoxItem
<DXCategory("Events")>
Public Event MeasureListBoxItem As MeasureItemEventHandler

Event Data

The MeasureListBoxItem event's data class is MeasureItemEventArgs. The following properties provide information specific to this event:

Property Description
Graphics Gets the Graphics object to measure against.
Index Gets the index of the item for which the height and width is needed.
ItemHeight Gets or sets the height of the item specified by the Index.
ItemWidth Gets or sets the width of the item specified by the Index.

Remarks

You can handle the MeasureListBoxItem event to specify custom heights for list box items displayed within the dropdown list box control. This event fires before an item is drawn.

See Also