Skip to main content

TabControlSelectionChangingEventArgs(Int32, Int32, Object, Object) Constructor

Initializes a new instance of the TabControlSelectionChangingEventArgs class.

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Xpf.Core.v24.2.dll

NuGet Package: DevExpress.Wpf.Core

Declaration

public TabControlSelectionChangingEventArgs(
    int oldSelectedIndex,
    int newSelectedIndex,
    object oldSelectedItem,
    object newSelectedItem
)

Parameters

Name Type Description
oldSelectedIndex Int32

A zero-based integer value that specifies the index of the previously selected tab item. This value is assigned to the TabControlSelectionChangedEventArgs.OldSelectedIndex property.

newSelectedIndex Int32

A zero-based integer value that specifies the index of the currently selected tab item. This value is assigned to the TabControlSelectionChangedEventArgs.NewSelectedIndex property.

oldSelectedItem Object

A data item that corresponds to the previously selected tab item. This value is assigned to the TabControlSelectionChangedEventArgs.OldSelectedItem property.

newSelectedItem Object

A data item that corresponds to the currently selected tab item. This value is assigned to the TabControlSelectionChangedEventArgs.NewSelectedItem property.

Remarks

Instances of the TabControlSelectionChangingEventArgs class are automatically created, initialized and passed to the DXTabControl.SelectionChanging event handlers. Typically, there is no need to call this constructor directly from your code.

See Also