Upraviť

Zdieľať cez


TabControlCancelEventArgs(TabPage, Int32, Boolean, TabControlAction) Constructor

Definition

Initializes a new instance of the TabControlCancelEventArgs class.

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)

Parameters

tabPage
TabPage

The TabPage the event is occurring for.

tabPageIndex
Int32

The zero-based index of tabPage in the TabPages collection.

cancel
Boolean

true to cancel the tab change by default; otherwise, false.

action
TabControlAction

One of the TabControlAction values.

Remarks

The property values of the newly created instance are initialized to the specified parameter values.

Applies to

See also