UIElement.FindSubElementsForTouchTargeting(Point, Rect) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
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
觸碰容忍度的界限。
傳回
一組點集。 這些頂點代表被給定接觸點(加上容差)相交的子元素的頂點。
備註
列表中的點按 z 順序遞減排列:渲染堆疊中最頂端的點先出現。
FindElementsInHostCoordinates 是一種類似的靜態類別輔助方法,也用於命中測試及一般物件樹檢查。 不過,它 FindSubElementsForTouchTargeting 新增了 Rect 輸入的精煉功能,用於觸控容忍度。
如果你使用 C# 程式設計,這個方法的回傳值類型會投影為包含 UIElement 項目的 IEnumerable 通用集合。