System.Windows.Forms.ColumnHeaderAutoResizeStyle Enumeration

Specifies how a column contained in a System.Windows.Forms.ListView should be resized.

Syntax

public enum ColumnHeaderAutoResizeStyle

Remarks

The System.Windows.Forms.ColumnHeaderAutoResizeStyle is used by the ListView.AutoResizeColumn(int, ColumnHeaderAutoResizeStyle), ListView.AutoResizeColumns(ColumnHeaderAutoResizeStyle), and ColumnHeader.AutoResize(ColumnHeaderAutoResizeStyle) methods.

Members

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.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0