ComponentOne FlexGrid for WinForms
GetImageRectangle Method

C1.Win.C1FlexGrid Namespace > CellStyle Class : GetImageRectangle Method
Cell rectangle.
Image to be displayed on the cell.
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

Reference

CellStyle Class
CellStyle Members