New to Telerik UI for WinForms? Start a free 30-day trial

Provides the affected panel, its position, and action for a cancelable tab-panel notification.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class TabStripPanelCancelEventArgs : CancelEventArgs

Inheritance: objectEventArgsCancelEventArgsTabStripPanelCancelEventArgs

Inherited Members CancelEventArgs.CancelEventArgs.Empty

Constructors

Initializes event data for an action on a tab panel. The cancel argument is not copied to the inherited Cancel property.

C#
public TabStripPanelCancelEventArgs(TabPanel tabPanel, int tabPanelIndex, bool cancel, TabControlAction action)
Parameters:tabPanelTabPanel

The panel involved in the action.

tabPanelIndexint

The panel's index in its tab strip.

cancelbool

A requested initial cancel state; this argument is currently ignored.

actionTabControlAction

The tab-control action being reported.

Properties

Gets the tab-control action associated with the notification.

C#
public TabControlAction Action { get; }

Gets the panel involved in the action.

C#
public TabPanel TabPanel { get; }

Gets the panel's index in the tab strip when the notification was created.

C#
public int TabPanelIndex { get; }