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

Provides the old and requested selection, and allows the selection change to be canceled.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class TabStripPanelSelectedIndexChangingEventArgs : CancelEventArgs

Inheritance: objectEventArgsCancelEventArgsTabStripPanelSelectedIndexChangingEventArgs

Inherited Members CancelEventArgs.CancelEventArgs.Empty

Constructors

Initializes event data for a pending selection change.

C#
public TabStripPanelSelectedIndexChangingEventArgs(int oldIndex, int newIndex, TabPanel oldTabPanel, TabPanel newTabPanel)
Parameters:oldIndexint

The currently selected panel index, or -1 when no panel is selected.

newIndexint

The requested selected panel index.

oldTabPanelTabPanel

The currently selected panel, or null if there is none.

newTabPanelTabPanel

The panel at the requested index, or null if no panel is present there.

Properties

Gets the panel index requested by the pending change.

C#
public int NewIndex { get; }

Gets the panel at the requested index, or null when no panel occupies that index.

C#
public TabPanel NewTabPanel { get; }

Gets the selected panel index before the pending change.

C#
public int OldIndex { get; }

Gets the panel selected before the pending change, or null if none was selected.

C#
public TabPanel OldTabPanel { get; }