Bearbeiten

Freigeben über


ColumnWidthChangingEventArgs Constructors

Definition

Initializes a new instance of the ColumnWidthChangingEventArgs class.

Overloads

ColumnWidthChangingEventArgs(Int32, Int32)

Initializes a new instance of the ColumnWidthChangingEventArgs class with the specified column index and width.

ColumnWidthChangingEventArgs(Int32, Int32, Boolean)

Initializes a new instance of the ColumnWidthChangingEventArgs class, specifying the column index and width and whether to cancel the event.

ColumnWidthChangingEventArgs(Int32, Int32)

Initializes a new instance of the ColumnWidthChangingEventArgs class with the specified column index and width.

public:
 ColumnWidthChangingEventArgs(int columnIndex, int newWidth);
public ColumnWidthChangingEventArgs (int columnIndex, int newWidth);
new System.Windows.Forms.ColumnWidthChangingEventArgs : int * int -> System.Windows.Forms.ColumnWidthChangingEventArgs
Public Sub New (columnIndex As Integer, newWidth As Integer)

Parameters

columnIndex
Int32

The index of the column whose width is changing.

newWidth
Int32

The new width for the column.

Applies to

ColumnWidthChangingEventArgs(Int32, Int32, Boolean)

Initializes a new instance of the ColumnWidthChangingEventArgs class, specifying the column index and width and whether to cancel the event.

public:
 ColumnWidthChangingEventArgs(int columnIndex, int newWidth, bool cancel);
public ColumnWidthChangingEventArgs (int columnIndex, int newWidth, bool cancel);
new System.Windows.Forms.ColumnWidthChangingEventArgs : int * int * bool -> System.Windows.Forms.ColumnWidthChangingEventArgs
Public Sub New (columnIndex As Integer, newWidth As Integer, cancel As Boolean)

Parameters

columnIndex
Int32

The index of the column whose width is changing.

newWidth
Int32

The new width of the column.

cancel
Boolean

true to cancel the width change; otherwise, false.

Remarks

Passing in true for the cancel parameter will cause the width change to be canceled, and the column will return to its previous size.

Applies to