TabControlCancelEventArgs(TabPage, Int32, Boolean, TabControlAction) 构造函数

定义

初始化 TabControlCancelEventArgs 类的新实例。

public:
 TabControlCancelEventArgs(System::Windows::Forms::TabPage ^ tabPage, int tabPageIndex, bool cancel, System::Windows::Forms::TabControlAction action);
public TabControlCancelEventArgs (System.Windows.Forms.TabPage tabPage, int tabPageIndex, bool cancel, System.Windows.Forms.TabControlAction action);
public TabControlCancelEventArgs (System.Windows.Forms.TabPage? tabPage, int tabPageIndex, bool cancel, System.Windows.Forms.TabControlAction action);
new System.Windows.Forms.TabControlCancelEventArgs : System.Windows.Forms.TabPage * int * bool * System.Windows.Forms.TabControlAction -> System.Windows.Forms.TabControlCancelEventArgs
Public Sub New (tabPage As TabPage, tabPageIndex As Integer, cancel As Boolean, action As TabControlAction)

参数

tabPage
TabPage

发生的事件所针对的 TabPage

tabPageIndex
Int32

TabPages 集合中的 tabPage 的索引(索引从零开始计算)。

cancel
Boolean

若要取消选项卡更改,则为 true(默认值);否则为 false

action
TabControlAction

TabControlAction 值之一。

注解

新创建的实例的属性值初始化为指定的参数值。

适用于

另请参阅