Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the item at the specified hit-test coordinates. These coordinates are absolute coordinates (they are not relative to the layout's content area).
Syntax
var object = iLayout2.hitTest(x, y);
Parameters
x
Type: NumberThe x-coordinate to test for.
y
Type: NumberThe y-coordinate to test for.
Return value
Type: Object
An object that describes the item at the hit test coordinates. It has these properties:
Term | Description |
---|---|
|
An WinJS.UI.ObjectType value that specifies whether the item at the specified coordinates is an item or a group header. |
|
The index of the item at the specified coordinates. |
Requirements
Minimum WinJS version |
WinJS 3.0 |
Namespace |
WinJS.UI |