FlexGrid for WinForms | ComponentOne
C1.Win.FlexGrid Namespace / Row Class / Top Property

In This Topic
    Top Property (Row)
    In This Topic
    Gets the position of the top of this row, in pixels, relative to the grid.
    Syntax
    'Declaration
     
    
    Public ReadOnly Property Top As Integer
    public int Top {get;}
    Remarks

    The value returned is the sum of row heights from the top of the grid until this row, and does not account for the scroll position. To account for the scroll position, this value should be adjusted using the grid's C1.Win.FlexGrid.Util.BaseControls.ScrollableControl.ScrollPosition property.

    To retrieve the size and position of a cell, use the C1FlexGridBase.GetCellRect method.

    See Also