UIElement.FindSubElementsForTouchTargeting(Point, Rect) 方法

定義

可讓 UIElement 子類別公開可協助解決觸控目標的子專案。

protected:
 virtual IIterable<IIterable<Point> ^> ^ FindSubElementsForTouchTargeting(Point point, Rect boundingRect) = FindSubElementsForTouchTargeting;
IIterable<IIterable<Point>> FindSubElementsForTouchTargeting(Point const& point, Rect const& boundingRect);
protected virtual IEnumerable<IEnumerable<Point>> FindSubElementsForTouchTargeting(Point point, Rect boundingRect);
function findSubElementsForTouchTargeting(point, boundingRect)
Protected Overridable Function FindSubElementsForTouchTargeting (point As Point, boundingRect As Rect) As IEnumerable(Of IEnumerable(Of Point))

參數

point
Point

所觸碰的點。

boundingRect
Rect

用於觸控容錯的界限。

傳回

一組點集合。 這些代表與指定觸控點交集的子項目頂點, (加上容錯) 。

備註

清單中的點會以遞減的迭置順序顯示:轉譯堆疊中的最上層會先出現在清單中。

FindElementsInHostCoordinates 是類似的靜態類別協助程式方法,也用於點擊測試和一般物件樹狀結構檢查。 不過, FindSubElementsForTouchTargeting 新增 Rect 輸入的精簡調整,以用於觸控容錯。

如果您使用 C# 進行程式設計,此方法的傳回數值型別會投影為包含UIElement專案的IEnumerable泛型集合。

適用於

另請參閱