Spread Windows Forms 7.0 Product Documentation
GetTextRectangle Method
See Also  Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > EditBaseCellType Class : GetTextRectangle Method


g
Graphics device interface for painting the text
r
Cell rectangle
f
Font
appearance
Appearance settings of the rectangle
rText
Text rectangle returned
paintString
String to be painted

Glossary Item Box

Gets the rectangle in which text is drawn.

Syntax

Visual Basic (Declaration) 
Protected Sub GetTextRectangle( _
   ByVal g As Graphics, _
   ByVal r As Rectangle, _
   ByVal f As Font, _
   ByVal appearance As Appearance, _
   ByRef rText As Rectangle, _
   ByVal paintString As String _
) 
Visual Basic (Usage)Copy Code
Dim instance As EditBaseCellType
Dim g As Graphics
Dim r As Rectangle
Dim f As Font
Dim appearance As Appearance
Dim rText As Rectangle
Dim paintString As String
 
instance.GetTextRectangle(g, r, f, appearance, rText, paintString)
C# 
protected void GetTextRectangle( 
   Graphics g,
   Rectangle r,
   Font f,
   Appearance appearance,
   ref Rectangle rText,
   string paintString
)

Parameters

g
Graphics device interface for painting the text
r
Cell rectangle
f
Font
appearance
Appearance settings of the rectangle
rText
Text rectangle returned
paintString
String to be painted

Return Value

Rectangle of the text in the rText parameter.

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.