Windows Dev Center

ILayout2.hitTest method

Applies to Windows and Windows Phone

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: Number

The x-coordinate to test for.

y

Type: Number

The y-coordinate to test for.

Return value

Type: Object

An object that describes the item at the hit test coordinates. It has these properties:

TermDescription

type

An WinJS.UI.ObjectType value that specifies whether the item at the specified coordinates is an item or a group header.

index

The index of the item at the specified coordinates.

 

Requirements

Minimum supported client

Windows 8.1 [Windows Store apps only]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.UI

See also

ILayout2

 

 

Show:
© 2015 Microsoft