Back to Devexpress

BaseListBoxControl.MultiColumn Property

windowsforms-devexpress-dot-xtraeditors-dot-baselistboxcontrol-ffc28171.md

latest2.6 KB
Original Source

BaseListBoxControl.MultiColumn Property

Gets or sets whether to arrange items across multiple columns if the ListBox cannot fit all items vertically.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

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

Property Value

TypeDefaultDescription
Booleanfalse

true to arrange items across multiple columns; otherwise, false.

|

Remarks

Set the MultiColumn property to true to arrange items across multiple columns if the ListBox cannot fit all items vertically. The number of columns dependents on the ListBox control’s width and ColumnWidth setting:

The ColumnWidth property specifies the column width in pixels. If this property is not specified, the Listbox control automatically calculates the column width based on the width of the longest item.

csharp
listBoxControl1.MultiColumn = true;
listBoxControl1.ColumnWidth = 150;
vb
listBoxControl1.MultiColumn = True
listBoxControl1.ColumnWidth = 150

See Also

ColumnWidth

HorizontalScrollbar

SelectedIndexChanged

MakeItemVisible(Int32)

BaseListBoxControl Class

BaseListBoxControl Members

DevExpress.XtraEditors Namespace