GetTextRectangle Method (ComboBoxCellType)
In This Topic
Gets the rectangle in which text is drawn.
Syntax
'Declaration
Protected Sub GetTextRectangle( _
ByVal As Graphics, _
ByVal As Rectangle, _
ByVal As Font, _
ByVal As Appearance, _
ByRef As Rectangle, _
ByVal As String _
)
'Usage
Dim instance As ComboBoxCellType
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)
protected void GetTextRectangle(
Graphics ,
Rectangle ,
Font ,
Appearance ,
ref Rectangle ,
string
)
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
See Also