|
|
|
SftTree.CalcColumnFromPos Method |
Returns the column number for given coordinates.
Syntax
VB.NET |
Boolean = object.CalcColumnFromPos(ByVal xPos As Single, ByVal yPos As Single, ByRef ColIndex As Short) As Boolean |
||
VB |
Boolean = object.CalcColumnFromPos(ByVal xPos As Single, ByVal yPos As Single, ColIndex As Integer) As Boolean |
||
C#.NET |
bool Boolean = object.CalcColumnFromPos(float xPos, float yPos, out short ColIndex); |
||
VC++ |
VARIANT_BOOL Boolean = object->CalcColumnFromPos(float xPos, float yPos, short* ColIndex); |
||
C |
HRESULT object->raw_CalcColumnFromPos(float xPos, float yPos, short* ColIndex, VARIANT_BOOL* Boolean); |
||
Delphi |
Boolean := object.CalcColumnFromPos(xPos : Single; yPos : Single; out ColIndex : Smallint) : WordBool; |
object
A SftTree object.
xPos
The horizontal position relative to the top, left corner of the tree control. The units used depend on the container (Visual Basic, Visual C++, etc.) and the coordinate system used.
yPos
The vertical position relative to the top, left corner of the tree control. The units used depend on the container (Visual Basic, Visual C++, etc.) and the coordinate system used.
ColIndex
Returns the column number at the specified coordinates xPos, yPos.
Boolean
Boolean |
Description |
True |
A column was located at the specified coordinates xPos, yPos. |
False |
No column was located at the specified coordinates xPos, yPos. |
Comments
The CalcColumnFromPos method returns the column number for given coordinates.
The CalcColumnFromPos and CalcColumnFromPosPix methods are synonyms, but may use different coordinate systems.
This method returns the column number ColIndex at the coordinates described by xPos, yPos. This position may be located above an item or a column header. CalcCellFromPos can be used to determine the cell. CalcIndexFromPos can be used to determine the index of the item.
See Also SftTree Object | Object Hierarchy