Back to Devexpress

TabControlSelectionChangedEventArgs.OldSelectedIndex Property

wpf-devexpress-dot-xpf-dot-core-dot-tabcontrolselectionchangedeventargs.md

latest2.1 KB
Original Source

TabControlSelectionChangedEventArgs.OldSelectedIndex Property

Gets the index of the previously selected tab item.

Namespace : DevExpress.Xpf.Core

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

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public int OldSelectedIndex { get; }
vb
Public ReadOnly Property OldSelectedIndex As Integer

Property Value

TypeDescription
Int32

A zero-based integer value that specifies the index of the previously selected tab item.

|

Remarks

To obtain a data item that corresponds to the previously selected tab item, use the TabControlSelectionChangedEventArgs.OldSelectedItem property.

To obtain the index and data item of the currently selected tab item, use the TabControlSelectionChangedEventArgs.NewSelectedIndex and TabControlSelectionChangedEventArgs.NewSelectedItem properties, respectively.

See Also

OldSelectedItem

NewSelectedIndex

NewSelectedItem

TabControlSelectionChangedEventArgs Class

TabControlSelectionChangedEventArgs Members

DevExpress.Xpf.Core Namespace