GrapeCity SPREAD for Windows Forms 11.0J
GetRotatedTextSize(Graphics,String,Font,Rectangle,TextOrientation,Boolean,HotkeyPrefix,StringTrimming) メソッド


GDI+グラフィックスサーフェス
文字列
フォント
矩形
テキストの向き
テキストを折り返す場合はTrue、それ以外の場合はFalse
HotkeyPrefix
StringTrimming
指定したフォント、向き、折り返し設定、ホットキー接頭辞、文字列トリミングで、指定したテキストを描画したときのサイズを取得します。
構文
'Declaration
 
Public Overloads Shared Function GetRotatedTextSize( _
   ByVal g As Graphics, _
   ByVal s As String, _
   ByVal font As Font, _
   ByVal r As Rectangle, _
   ByVal textOrientation As TextOrientation, _
   ByVal wordWrap As Boolean, _
   ByVal hotkeyPrefix As HotkeyPrefix, _
   ByVal stringTrim As StringTrimming _
) As Size
'使用法
 
Dim g As Graphics
Dim s As String
Dim font As Font
Dim r As Rectangle
Dim textOrientation As TextOrientation
Dim wordWrap As Boolean
Dim hotkeyPrefix As HotkeyPrefix
Dim stringTrim As StringTrimming
Dim value As Size
 
value = ElementWindowless.GetRotatedTextSize(g, s, font, r, textOrientation, wordWrap, hotkeyPrefix, stringTrim)

パラメータ

g
GDI+グラフィックスサーフェス
s
文字列
font
フォント
r
矩形
textOrientation
テキストの向き
wordWrap
テキストを折り返す場合はTrue、それ以外の場合はFalse
hotkeyPrefix
HotkeyPrefix
stringTrim
StringTrimming

戻り値の型

テキストのサイズを含むSizeオブジェクト
参照

ElementWindowless クラス
ElementWindowless メンバ
オーバーロード一覧

 

 


© 2004-2018, GrapeCity Inc. All rights reserved.