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