BaseListBoxControl.ItemHeight Property
Gets or sets an item’s height.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v19.1.dll
Declaration
Property Value
Type | Default | Description |
---|---|---|
Int32 | 0 | An integer value representing an item’s height in pixels. |
Remarks
If this property is set to 0, an item’s height is the height of its font plus a small margin to provide some clearance around the items. Use the ItemHeight property to specify a custom item height.
To enable the item auto-height feature, set the BaseListBoxControl.ItemAutoHeight property to true.
The BaseListBoxControl.MeasureItem event allows you to dynamically set the height for each item. This can be useful, for instance, when you need to change the height of a specific item while other items within the collection retain the default height.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the ItemHeight property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.