共用方式為


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 值。

備註

新建立之實例的屬性值會初始化為指定的參數值。

適用於

另請參閱