Table of Contents

Property CurrentPosition

Namespace
Alternet.UI
Assembly
Alternet.UI.dll

CurrentPosition

The ordinal position of the CurrentItem within the (optionally sorted and filtered) view.

public virtual int CurrentPosition { get; }

Property Value

int

-1 if the CurrentPosition is unknown, because the collection does not have an effective notion of indices, or because CurrentPosition is being forcibly changed due to a CollectionChange.

Remarks

Only wrapper classes (those that pass currency handling calls to another internal CollectionView) should override CurrenPosition; all other derived classes should use SetCurrent() to update the current values stored in the base class.