ColumnHeaderAutoResizeStyle Enumeration

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Specifies how a column contained in a ListView should be resized.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public enum ColumnHeaderAutoResizeStyle

Member nameDescription
ColumnContent

Specifies the column should be resized based on the length of the column content.

HeaderSize

Specifies the column should be resized based on the length of the column header content.

None

Specifies no resizing should occur.

The ColumnHeaderAutoResizeStyle is used by the ListView.AutoResizeColumn, ListView.AutoResizeColumns, and ColumnHeader.AutoResize methods.

.NET Framework
Available since 2.0
Return to top
Show: