GrapeCity PlusPak for Windows Forms 10.0J
MeasureText(String,Image,Size,Font) メソッド

stringはテキストを示します。
System.Drawing.Imageはイメージを示します。
System.Drawing.Sizeの値はテキストのラップ矩形を示します。
System.Drawing.Fontオブジェクトはキャプションのフォントを示します。
テキストのサイズを測定します。
シンタックス
Public Overloads Function MeasureText( _
   ByVal text As String, _
   ByVal image As Image, _
   ByVal size As Size, _
   ByVal font As Font _
) As Size
public Size MeasureText( 
   string text,
   Image image,
   Size size,
   Font font
)

パラメータ

text
stringはテキストを示します。
image
System.Drawing.Imageはイメージを示します。
size
System.Drawing.Sizeの値はテキストのラップ矩形を示します。
font
System.Drawing.Fontオブジェクトはキャプションのフォントを示します。

戻り値の型

Size構造体はキャプションのサイズを示します。
参照

参照

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

 

 


© 2008 GrapeCity inc. All rights reserved.