GetTextRectangle Method
GetTextRectangle(Graphics, Rectangle, Font, Appearance, ref Rectangle, string)
Gets the rectangle in which text is drawn.
Declaration
protected void GetTextRectangle(Graphics g, Rectangle r, Font f, Appearance appearance, ref Rectangle rText, string paintString)
Protected Sub GetTextRectangle(g As Graphics, r As Rectangle, f As Font, appearance As Appearance, ByRef rText As Rectangle, paintString As String)
Parameters
Type |
Name |
Description |
Graphics |
g |
Graphics device interface for painting the text
|
Rectangle |
r |
Cell rectangle
|
Font |
f |
Font
|
Appearance |
appearance |
Appearance settings of the rectangle
|
Rectangle |
rText |
Text rectangle returned
|
string |
paintString |
String to be painted
|