Skip to main content
A newer version of this page is available. .

TabControlSelectionChangedEventArgs(Int32, Int32, Object, Object) Constructor

Initializes a new instance of the TabControlSelectionChangedEventArgs class.

Namespace: DevExpress.Xpf.Core

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

Declaration

public TabControlSelectionChangedEventArgs(
    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 TabControlSelectionChangedEventArgs class are automatically created, initialized and passed to the DXTabControl.SelectionChanged event handlers. Typically, there is no need to call this constructor directly from your code.

See Also