Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.2.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