ColumnWidthChangingEventArgs 构造函数    
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 ColumnWidthChangingEventArgs 类的新实例。
重载
| ColumnWidthChangingEventArgs(Int32, Int32) | 使用指定的列索引和宽度初始化 ColumnWidthChangingEventArgs 类的新实例。 | 
| ColumnWidthChangingEventArgs(Int32, Int32, Boolean) | 初始化 ColumnWidthChangingEventArgs 类的新实例,指定列索引和宽度以及是否取消该事件。 | 
ColumnWidthChangingEventArgs(Int32, Int32)
使用指定的列索引和宽度初始化 ColumnWidthChangingEventArgs 类的新实例。
public:
 ColumnWidthChangingEventArgs(int columnIndex, int newWidth);public ColumnWidthChangingEventArgs (int columnIndex, int newWidth);new System.Windows.Forms.ColumnWidthChangingEventArgs : int * int -> System.Windows.Forms.ColumnWidthChangingEventArgsPublic Sub New (columnIndex As Integer, newWidth As Integer)参数
- columnIndex
- Int32
要更改其宽度的列的索引。
- newWidth
- Int32
列的新宽度。
适用于
ColumnWidthChangingEventArgs(Int32, Int32, Boolean)
初始化 ColumnWidthChangingEventArgs 类的新实例,指定列索引和宽度以及是否取消该事件。
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.ColumnWidthChangingEventArgsPublic Sub New (columnIndex As Integer, newWidth As Integer, cancel As Boolean)参数
- columnIndex
- Int32
要更改其宽度的列的索引。
- newWidth
- Int32
列的新宽度。
- cancel
- Boolean
如果取消宽度更改,则为 true;否则为 false。
注解
true cancel传入参数将导致取消宽度更改,列将返回到其以前的大小。