ColumnHeaderAutoResizeStyle Enumeration
TOC
Collapse the table of content
Expand the table of content

ColumnHeaderAutoResizeStyle Enumeration

 

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:
© 2016 Microsoft