ComponentOne FlexPivot for WinForms
C1.Win.C1FlexGrid.4.5.2 Assembly / C1.Win.C1FlexGrid Namespace / CellStyle Class / GetImageRectangle Method
Cell rectangle.
Image to be displayed on the cell.

In This Topic
    GetImageRectangle Method
    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 _
    ) As Rectangle
    public Rectangle GetImageRectangle( 
       Rectangle rc,
       Image img
    )

    Parameters

    rc
    Cell rectangle.
    img
    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