|
|
|
SftTree.CalcCellFromPosPix Method |
Returns the item index and column number for given coordinates.
Syntax
VB.NET |
Boolean = object.CalcCellFromPosPix(ByVal XPosPix As OLE_XPOS_PIXELS, ByVal YPosPix As OLE_YPOS_PIXELS, ByRef ItemIndex As Integer, ByRef ColIndex As Short) As Boolean |
||
VB |
Boolean = object.CalcCellFromPosPix(ByVal XPosPix As OLE_XPOS_PIXELS, ByVal YPosPix As OLE_YPOS_PIXELS, ItemIndex As Long, ColIndex As Integer) As Boolean |
||
C#.NET |
bool Boolean = object.CalcCellFromPosPix(OLE_XPOS_PIXELS XPosPix, OLE_YPOS_PIXELS YPosPix, out int ItemIndex, out short ColIndex); |
||
VC++ |
VARIANT_BOOL Boolean = object->CalcCellFromPosPix(OLE_XPOS_PIXELS XPosPix, OLE_YPOS_PIXELS YPosPix, long* ItemIndex, short* ColIndex); |
||
C |
HRESULT object->raw_CalcCellFromPosPix(OLE_XPOS_PIXELS XPosPix, OLE_YPOS_PIXELS YPosPix, long* ItemIndex, short* ColIndex, VARIANT_BOOL* Boolean); |
||
Delphi |
Boolean := object.CalcCellFromPosPix(XPosPix : Integer; YPosPix : Integer; out ItemIndex : Integer; out ColIndex : Smallint) : WordBool; |
object
A SftTree object.
XPosPix
The horizontal position relative to the top, left corner of the tree control in pixels.
YPosPix
The vertical position relative to the top, left corner of the tree control in pixels.
ItemIndex
Returns the item index at the specified coordinates xPosPix, yPosPix.
ColIndex
Returns the column number at the specified coordinates xPosPix, yPosPix.
Boolean
Boolean |
Description |
True |
A cell was located at the specified coordinates xPosPix, yPosPix. |
False |
No cell was located at the specified coordinates xPosPix, yPosPix. |
Comments
The CalcCellFromPosPix method returns the item index and column number for given coordinates.
The CalcCellFromPos and CalcCellFromPosPix methods are synonyms, but may use different coordinate systems.
If cell merging is allowed, CalcCellFromPosPix will return the actually displayed cell at the given location. The column number returned does not necessarily match the physical column. If the actual column is required, use CalcColumnFromPosPix instead. CalcIndexFromPosPix can be used to calculate the index of the item.
See Also SftTree Object | Object Hierarchy