FlexGrid for WinForms | ComponentOne
C1.Win.C1FlexGrid Namespace / CellStyle Class / GetImageRectangle Method
Cell rectangle.
Image to be displayed on the cell.
Checkbox image to be displayed on the cell.

In This Topic
    GetImageRectangle Method (CellStyle)
    In This Topic
    Gets the image portion of a cell's rectangle.
    Syntax
    'Declaration
     
    
    Public Function GetImageRectangle( _
       ByVal rc As Rectangle, _
       ByVal img As Image, _
       Optional ByVal checkImage As Image _
    ) As Rectangle
    public Rectangle GetImageRectangle( 
       Rectangle rc,
       Image img,
       Image checkImage
    )

    Parameters

    rc
    Cell rectangle.
    img
    Image to be displayed on the cell.
    checkImage
    Checkbox image to be displayed on the cell.

    Return Value

    A rectangle that represents the image portion of a cell, discounting the area taken up by the cell borders and padding.
    See Also