|
|
|
SftDirectory.HitTest Method |
Determines the file/folder at the given cursor coordinates.
Syntax
VB.NET |
refFolderObj = object.HitTest(ByVal xPos As Single, ByVal yPos As Single) As SftDirectoryFolder |
||
VB |
refFolderObj = object.HitTest(ByVal xPos As Single, ByVal yPos As Single) As SftDirectoryFolder |
||
C#.NET |
SftDirectoryFolder refFolderObj = object.HitTest(float xPos, float yPos); |
||
VC++ |
ISftDirectoryFolder* refFolderObj = object->HitTest(float xPos, float yPos); |
||
C |
HRESULT object->raw_HitTest(float xPos, float yPos, ISftDirectoryFolder** refFolderObj); |
||
Delphi |
refFolderObj := object.HitTest(xPos : Single; yPos : Single) : ISftDirectoryFolder; |
object
A SftDirectory object.
xPos
The x coordinate to be tested. The units used depend on the container (Visual Basic, Visual C++, etc.) and the coordinate system used.
yPos
The y coordinate to be tested. The units used depend on the container (Visual Basic, Visual C++, etc.) and the coordinate system used.
refFolderObj
Returns the SftDirectoryFolder object located at the specified coordinates. If no folder is located at the coordinates, Nothing (NULL) is returned.
Comments
The HitTest method determines the file/folder at the given cursor coordinates.
The HitTestPix method can be used to determine the folder using coordinates expressed in pixels.