ListBox.AutoSizeColumns
- Aktualisiert2025-07-21
- 1 Minute(n) Lesezeit
ListBox.AutoSizeColumns
Syntax
ListBox.AutoSizeColumns
Data Type
Purpose
Specifies whether to make all columns fit within the width of the control. When the control resizes, the width of each column for which the ListBoxColumn.Autosizing property is a value other than AutoSizingOption_None adjusts so the columns fit the new size of the control. You must ensure that at least one column enables autosizing when you set this property to True .
Remarks
When this property is True , the sum of all column widths always equals the width of the control, and the horizontal scrollbar is not visible. When this property is False , you can resize the columns to any width, and the horizontal scrollbar appears as needed. When the value of the autosize property for each column is AutoSizingOption_None , the last column is autosized to fit the width of the control.