ColumnWidthChangingEventArgs ColumnWidthChangingEventArgs ColumnWidthChangingEventArgs ColumnWidthChangingEventArgs Constructors

定义

重载

ColumnWidthChangingEventArgs(Int32, Int32) ColumnWidthChangingEventArgs(Int32, Int32) ColumnWidthChangingEventArgs(Int32, Int32) ColumnWidthChangingEventArgs(Int32, Int32)

使用指定的列索引和宽度初始化 ColumnWidthChangingEventArgs 类的新实例。Initializes a new instance of the ColumnWidthChangingEventArgs class with the specified column index and width.

ColumnWidthChangingEventArgs(Int32, Int32, Boolean) ColumnWidthChangingEventArgs(Int32, Int32, Boolean) ColumnWidthChangingEventArgs(Int32, Int32, Boolean) ColumnWidthChangingEventArgs(Int32, Int32, Boolean)

初始化 ColumnWidthChangingEventArgs 类的新实例,指定列索引和宽度以及是否取消该事件。Initializes a new instance of the ColumnWidthChangingEventArgs class, specifying the column index and width and whether to cancel the event.

ColumnWidthChangingEventArgs(Int32, Int32) ColumnWidthChangingEventArgs(Int32, Int32) ColumnWidthChangingEventArgs(Int32, Int32) ColumnWidthChangingEventArgs(Int32, Int32)

使用指定的列索引和宽度初始化 ColumnWidthChangingEventArgs 类的新实例。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)

参数

columnIndex
Int32 Int32 Int32 Int32

要更改其宽度的列的索引。The index of the column whose width is changing.

newWidth
Int32 Int32 Int32 Int32

列的新宽度。The new width for the column.

ColumnWidthChangingEventArgs(Int32, Int32, Boolean) ColumnWidthChangingEventArgs(Int32, Int32, Boolean) ColumnWidthChangingEventArgs(Int32, Int32, Boolean) ColumnWidthChangingEventArgs(Int32, Int32, Boolean)

初始化 ColumnWidthChangingEventArgs 类的新实例,指定列索引和宽度以及是否取消该事件。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)

参数

columnIndex
Int32 Int32 Int32 Int32

要更改其宽度的列的索引。The index of the column whose width is changing.

newWidth
Int32 Int32 Int32 Int32

列的新宽度。The new width of the column.

cancel
Boolean Boolean Boolean Boolean

如果取消宽度更改,则为 true;否则为 falsetrue to cancel the width change; otherwise, false.

注解

传入以true cancel获取参数将导致宽度更改被取消, 列将恢复为其以前的大小。Passing in true for the cancel parameter will cause the width change to be canceled, and the column will return to its previous size.

适用于