'Declaration
Public Function FindNearestItem( _ ByVal Direction As SearchDirectionHint, _ ByVal X As Integer, _ ByVal Y As Integer _ ) As Integer
public int FindNearestItem( SearchDirectionHint Direction, int X, int Y )
public function FindNearestItem( Direction: SearchDirectionHint; X: Integer; Y: Integer ): Integer;
public function FindNearestItem( Direction : SearchDirectionHint, X : int, Y : int ) : int;
public: int FindNearestItem( SearchDirectionHint Direction, int X, int Y )
public: int FindNearestItem( SearchDirectionHint Direction, int X, int Y )
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.