Back to Devexpress

RepositoryItemCheckedComboBoxEdit.ItemAutoHeight Property

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemcheckedcomboboxedit-8ea4e4cc.md

latest2.3 KB
Original Source

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

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(false)]
[DXCategory("Appearance")]
public bool ItemAutoHeight { get; set; }
vb
<DXCategory("Appearance")>
<DefaultValue(False)>
Public Property ItemAutoHeight As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

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

MeasureListBoxItem

RepositoryItemCheckedComboBoxEdit Class

RepositoryItemCheckedComboBoxEdit Members

DevExpress.XtraEditors.Repository Namespace