PowerTools SPREAD for Windows Forms 8.0J
GetTextRectangle メソッド (EditBaseCellType)


テキストを描画するためのグラフィックデバイスインタフェース
セル矩形
フォント
矩形の外観設定
取得するテキスト矩形
描画する文字列
テキストが描画されている矩形を取得します。
構文
'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 _
) 
'使用法
 
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)
protected void GetTextRectangle( 
   Graphics g,
   Rectangle r,
   Font f,
   Appearance appearance,
   ref Rectangle rText,
   string paintString
)

パラメータ

g
テキストを描画するためのグラフィックデバイスインタフェース
r
セル矩形
f
フォント
appearance
矩形の外観設定
rText
取得するテキスト矩形
paintString
描画する文字列

戻り値の型

テキストの Rectangle(rText パラメータに返されます)
参照

EditBaseCellType クラス
EditBaseCellType メンバ

 

 


© 2004-2015, GrapeCity inc. All rights reserved.