Parameters
- Direction
- A member of the SearchDirectionHint enumeration.
- X
- The x-coordinate of the point at which to begin searching.
- Y
- The x-coordinate of the point at which to begin searching.
Return Value
The item index. -1 if the method failed or a value between 0 and ItemCount - 1.