SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Returns the cell found at given coordinates.
VB.NET | object.HitTestCell(ByVal x As Single, ByVal y As Single, ByRef ItemIndex As Integer, ByRef ColNum As Short, ByRef Main As Boolean) |
VB | object.HitTestCell(ByVal x As Single, ByVal y As Single, ItemIndex As Long, ColNum As Integer, Main As Boolean) |
C#.NET | void object.HitTestCell(float x, float y, out int ItemIndex, out short ColNum, out bool Main); |
VC++ | HRESULT object->HitTestCell(float x, float y, long* ItemIndex, short* ColNum, VARIANT_BOOL* Main); |
C | HRESULT object->raw_HitTestCell(float x, float y, long* ItemIndex, short* ColNum, VARIANT_BOOL* Main); |
object
x
The x coordinate of the location for which the item index and column number is to be returned. The units used depend on the container (Visual Basic, Visual C++, etc.) and the coordinate system used.
y
The y coordinate of the location for which the item index and column number is to be returned. The units used depend on the container (Visual Basic, Visual C++, etc.) and the coordinate system used.
ItemIndex
Returns the zero-based index of the item found at the specified coordinates. -1 is returned if no item is found.
ColNum
Returns the zero-based column number of the column found at the specified coordinates. -1 is returned if no item is found.
Main
Returns True if the coordinates describe a point in the static or edit control portion. False is returned if the coordinates and the cell are located in the drop down portion.
The HitTestCell method returns the cell found at given coordinates.
The HitTestCell and Items.HitTestCellPix methods are synonyms, but may use different coordinate systems. The Items.HitTestCellV method is used with Internet Explorer/VBScript.
If a cell is found at the coordinates (x, y), the zero-based index and the zero-based column number of the cell is returned.
The HitTestCell method could be used during an OLEDragOver event to determine which item is currently the target of the drag & drop operation.
The Items.HitTest method can be used to determine the item found at given coordinates.
See Also SftBoxItems Object | Object Hierarchy