ComponentOne FlexGrid for WinForms
GetTextRectangle Method

C1.Win.C1FlexGrid Namespace > CellStyle Class : GetTextRectangle Method
Cell rectangle.
Image that shares the cell space with the text.
Gets the text portion of a cell's rectangle.
Syntax
'Declaration
 
Public Function GetTextRectangle( _
   ByVal rc As Rectangle, _
   ByVal img As Image _
) As Rectangle
public Rectangle GetTextRectangle( 
   Rectangle rc,
   Image img
)

Parameters

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

Reference

CellStyle Class
CellStyle Members