ComponentOne List for WinForms
C1.Win.C1List Namespace / DropDownList Class / CellContaining Method
Integer that defines the x coordinate in pixels.
Integer that defines the y coordinate in pixels.
Integer that receives the zero-based index of the row beneath the specified y coordinate.
Integer that receives the zero-based index of the column beneath the specified y coordinate.

In This Topic
    CellContaining Method (DropDownList)
    In This Topic
    Returns the cell position for a set of coordinates.
    Syntax
    'Declaration
     
    
    Public Function CellContaining( _
       ByVal x As Integer, _
       ByVal y As Integer, _
       ByRef rowAt As Integer, _
       ByRef colAt As Integer _
    ) As Boolean
    public bool CellContaining( 
       int x,
       int y,
       out int rowAt,
       out int colAt
    )

    Parameters

    x
    Integer that defines the x coordinate in pixels.
    y
    Integer that defines the y coordinate in pixels.
    rowAt
    Integer that receives the zero-based index of the row beneath the specified y coordinate.
    colAt
    Integer that receives the zero-based index of the column beneath the specified y coordinate.
    Remarks
    The CellContaining method combines the C1.Win.C1List.ListBase.C1ListBase.ColContaining and C1.Win.C1List.ListBase.C1ListBase.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.
    See Also