Back to Devexpress

CheckedComboBoxEdit.MeasureListBoxItem Event

windowsforms-devexpress-dot-xtraeditors-dot-checkedcomboboxedit-a7263a94.md

latest2.9 KB
Original Source

CheckedComboBoxEdit.MeasureListBoxItem Event

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

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Events")]
public event MeasureItemEventHandler MeasureListBoxItem
vb
<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:

PropertyDescription
GraphicsGets the Graphics object to measure against.
IndexGets the index of the item for which the height and width is needed.
ItemHeightGets or sets the height of the item specified by the Index.
ItemWidthGets 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

MeasureListBoxItem

ItemAutoHeight

CheckedComboBoxEdit Class

CheckedComboBoxEdit Members

DevExpress.XtraEditors Namespace