TouchHitTestingEventArgs.EvaluateProximity Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
EvaluateProximity(Point[]) |
Returns a ranking for the polygon as the probable touch target and an adjusted touch point within the polygon. The rank is determined through a comparison of targeting heuristics for all polygons that intersect the touch contact area. |
EvaluateProximity(Rect) |
Returns a ranking for the rectangle as the probable touch target and an adjusted touch point within the rectangle. The rank is determined through a comparison of targeting heuristics for all rectangles that intersect the touch contact area. |
EvaluateProximity(Point[])
Returns a ranking for the polygon as the probable touch target and an adjusted touch point within the polygon. The rank is determined through a comparison of targeting heuristics for all polygons that intersect the touch contact area.
/// [Windows.Foundation.Metadata.Overload("EvaluateProximityToPolygon")]
CoreProximityEvaluation EvaluateProximity(winrt::array_view <Point> const& controlVertices);
[Windows.Foundation.Metadata.Overload("EvaluateProximityToPolygon")]
public CoreProximityEvaluation EvaluateProximity(Point[] controlVertices);
function evaluateProximity(controlVertices)
Public Function EvaluateProximity (controlVertices As Point()) As CoreProximityEvaluation
Parameters
- controlVertices
- Point[]
The array of x-y screen coordinates that define the shape of the UI element (the number of vertices in the polygon). This value must be greater than or equal to 3.
Returns
The CoreProximityEvaluation structure that holds the rank and adjusted touch point data.
- Attributes
See also
Applies to
EvaluateProximity(Rect)
Returns a ranking for the rectangle as the probable touch target and an adjusted touch point within the rectangle. The rank is determined through a comparison of targeting heuristics for all rectangles that intersect the touch contact area.
/// [Windows.Foundation.Metadata.DefaultOverload]
/// [Windows.Foundation.Metadata.Overload("EvaluateProximityToRect")]
CoreProximityEvaluation EvaluateProximity(Rect const& controlBoundingBox);
[Windows.Foundation.Metadata.DefaultOverload]
[Windows.Foundation.Metadata.Overload("EvaluateProximityToRect")]
public CoreProximityEvaluation EvaluateProximity(Rect controlBoundingBox);
function evaluateProximity(controlBoundingBox)
Public Function EvaluateProximity (controlBoundingBox As Rect) As CoreProximityEvaluation
Parameters
Returns
The CoreProximityEvaluation structure that holds the rank and adjusted touch point data.
- Attributes