BCGControlBar Library for .NET
ColumnFromPoint Method




Specifies the point in client coordinates.
Output. A part of column header containing the point.
Output. Contains column index in ColumnCollection.
Ignore Y coordinate when looking for a column.
Returns a column containing the specified point.
Syntax
'Declaration
 
Public Function ColumnFromPoint( _
   ByVal pt As Point, _
   ByRef part As CellPart, _
   ByRef columnIndex As Integer, _
   ByVal byXOnly As Boolean _
) As GridColumn
'Usage
 
Dim instance As GridControl
Dim pt As Point
Dim part As CellPart
Dim columnIndex As Integer
Dim byXOnly As Boolean
Dim value As GridColumn
 
value = instance.ColumnFromPoint(pt, part, columnIndex, byXOnly)
public GridColumn ColumnFromPoint( 
   Point pt,
   ref CellPart part,
   ref int columnIndex,
   bool byXOnly
)
public: GridColumn* ColumnFromPoint( 
   Point pt,
   ref CellPart part,
   ref int columnIndex,
   bool byXOnly
) 
public:
GridColumn^ ColumnFromPoint( 
   Point pt,
   CellPart% part,
   int% columnIndex,
   bool byXOnly
) 

Parameters

pt
Specifies the point in client coordinates.
part
Output. A part of column header containing the point.
columnIndex
Output. Contains column index in ColumnCollection.
byXOnly
Ignore Y coordinate when looking for a column.

Return Value

A pointer to column or null if no column contains the specified point.
Remarks
If byXOnly is false, this method looks for column header containing the point. Otherwise it looks for a column whose Left bound is less than pt.X and Right bound is greater than pt.X.
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