|
|
|
SftBoxItems.HitTestCellV Method |
Returns the cell found at given coordinates.
Syntax
VB.NET |
object.HitTestCellV(ByVal x As Single, ByVal y As Single, ByRef ItemIndex As Object, ByRef ColNum As Object, ByRef Main As Object) |
||
VB |
object.HitTestCellV(ByVal x As Single, ByVal y As Single, ItemIndex As Variant, ColNum As Variant, Main As Variant) |
||
C#.NET |
void object.HitTestCellV(float x, float y, out object ItemIndex, out object ColNum, out object Main); |
||
VC++ |
HRESULT object->HitTestCellV(float x, float y, const _variant_t&* ItemIndex, const _variant_t&* ColNum, const _variant_t&* Main); |
||
C |
HRESULT object->raw_HitTestCellV(float x, float y, VARIANT* ItemIndex, VARIANT* ColNum, VARIANT* Main); |
||
Delphi |
procedure object.HitTestCellV(x : Single, y : Single, out ItemIndex : OleVariant, out ColNum : OleVariant, out Main : OleVariant); |
object
A SftBoxItems 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.
Comments
The HitTestCellV method returns the cell found at given coordinates.
The Items.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.