FlexGrid for WinForms
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
'Usage
 
Dim instance As CellStyle
Dim rc As Rectangle
Dim img As Image
Dim value As Rectangle
 
value = instance.GetImageRectangle(rc, img)
public Rectangle GetImageRectangle( 
   Rectangle rc,
   Image img
)
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.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

CellStyle Class
CellStyle Members

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Send Feedback