Share via


OrientedVirtualizingPanel.GetInsertionIndexes(Point, Int32, Int32) 方法

定義

傳回指定點介於 的專案索引值。

public:
 virtual void GetInsertionIndexes(Point position, [Out] int & first, [Out] int & second) = GetInsertionIndexes;
void GetInsertionIndexes(Point const& position, [Out] int & first, [Out] int & second);
public void GetInsertionIndexes(Point position, out int first, out int second);
Public Sub GetInsertionIndexes (position As Point, ByRef first As Integer, ByRef second As Integer)

參數

position
Point

要取得插入索引的點。

first
Int32

int

指定點之前的專案索引。

second
Int32

int

指定點之後的專案索引。

實作

M:Microsoft.UI.Xaml.Controls.IInsertionPanel.GetInsertionIndexes(Windows.Foundation.Point,System.Int32@,System.Int32@) M:Microsoft.UI.Xaml.Controls.IInsertionPanel.GetInsertionIndexes(Windows.Foundation.Point,int@,int@)

備註

處理 DragOver 事件時呼叫這個方法,以傳回 發生 DragOver 的兩個專案索引,以及可能發生的置放和插入位置。

適用於