BCGControlBar Library for .NET
CellFromPoint Method




Specifies the point in client coordinates.
Output. If a cell was found, it contains the part of cell, which contains the point.
Returns a reference to cell containing the given (in client coordinates) point.
Syntax
'Declaration
 
Public Function CellFromPoint( _
   ByVal pt As Point, _
   ByRef part As CellPart _
) As Cell
'Usage
 
Dim instance As GridControl
Dim pt As Point
Dim part As CellPart
Dim value As Cell
 
value = instance.CellFromPoint(pt, part)
public Cell CellFromPoint( 
   Point pt,
   ref CellPart part
)
public: Cell* CellFromPoint( 
   Point pt,
   ref CellPart part
) 
public:
Cell^ CellFromPoint( 
   Point pt,
   CellPart% part
) 

Parameters

pt
Specifies the point in client coordinates.
part
Output. If a cell was found, it contains the part of cell, which contains the point.

Return Value

A reference to cell. It's null if no cell contains the specified point.
Remarks
This function can be used to find a cell containing the specified point and hit test the cell, so you can find out what part of the cell - content or border - was clicked.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GridControl Class
GridControl Members

Send Feedback