ItemCollection::CurrentPosition Property

 

Gets the ordinal position of the current item within the view.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

public:
property int CurrentPosition {
	virtual int get() override;
}

Property Value

Type: System::Int32

The ordinal position of the current item within the view or -1 if the collection is uninitialized or if there is no collection in the ItemsSource mode.

.NET Framework
Available since 3.0
Return to top
Show: