Skip to main content

RepositoryItemCheckedComboBoxEdit.ItemAutoHeight Property

Gets or sets whether the height of items in the drop-down is automatically calculated to fit their entire content.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DefaultValue(false)]
[DXCategory("Appearance")]
public bool ItemAutoHeight { get; set; }

Property Value

Type Default Description
Boolean false

true if item height is automatically calculated; otherwise, false.

Remarks

By default, all items in the drop-down have the same height, determined by the control’s font. Some items may have lengthy display text. To wrap the text, enable the word-wrapping feature using the RepositoryItemCheckedComboBoxEdit.AppearanceDropDown.TextOptions.WordWrap property and set the ItemAutoHeight property to true. In this case, the item height is automatically calculated to fit the entire text. As a result, different items may have different heights.

Also, you can explicitly specify a custom height for particular items using the RepositoryItemCheckedComboBoxEdit.MeasureListBoxItem event.

See Also