True DBGrid for WinForms
CellContaining メソッド (C1TrueDBGrid)

C1.Win.C1TrueDBGrid.4.5.2 アセンブリ > C1.Win.C1TrueDBGrid 名前空間 > C1TrueDBGrid クラス : CellContaining メソッド
The x-coordinate.
The y-coordinate.
The row under the coordinate pair.
The column index under the coordinate pair.
Returns the cell position for a set of coordinates.
シンタックス
'宣言
 
Public Function CellContaining( _
   ByVal x As System.Integer, _
   ByVal y As System.Integer, _
   ByRef row As System.Integer, _
   ByRef col As System.Integer _
) As System.Boolean
public System.bool CellContaining( 
   System.int x,
   System.int y,
   out System.int row,
   out System.int col
)

パラメータ

x
The x-coordinate.
y
The y-coordinate.
row
The row under the coordinate pair.
col
The column index under the coordinate pair.

戻り値の型

A value indicating whether a data cell is beneath the specified coordinate pair.
解説

The CellContaining method combines the ColContaining(Int32) and RowContaining methods into one call. If the coordinate pair specified by x and y points to a data cell, this method returns True, and the rowindex and colindex arguments receive zero-based indexes that identify the cell.

This method is useful when working with mouse and drag events when trying to determine where the user clicked or dropped another control in terms of a grid cell.

If the specified coordinate is outside of the grid's data area, this method returns False. Use the PointAt(Int32,Int32) method to determine what kind of grid element, if any, is beneath the specified coordinate.

参照

C1TrueDBGrid クラス
C1TrueDBGrid メンバ