FlexGrid for WinForms | ComponentOne
C1.Win.FlexGrid Namespace / CellStyle Class / GetTextRectangle Method
Cell rectangle.
Image that shares the cell space with the text.
Checkbox image that shares the cell space with the text.

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

    Parameters

    rc
    Cell rectangle.
    img
    Image that shares the cell space with the text.
    checkImage
    Checkbox image that shares the cell space with the text.

    Return Value

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