ItemsControl.GetAlternationIndex(DependencyObject) 方法
定義
取得指定物件的 AlternationIndex。Gets the AlternationIndex for the specified object.
public:
static int GetAlternationIndex(System::Windows::DependencyObject ^ element);
public static int GetAlternationIndex (System.Windows.DependencyObject element);
static member GetAlternationIndex : System.Windows.DependencyObject -> int
Public Shared Function GetAlternationIndex (element As DependencyObject) As Integer
參數
- element
- DependencyObject
要從其中取得 AlternationIndex 的物件。The object from which to get the AlternationIndex.
傳回
AlternationIndex 的值。The value of the AlternationIndex.