バージョン 24.2 (最新)

GetStringBounds メソッド

一定のテキスト文字列の境界を計算します。
シンタックス
public static Size GetStringBounds( 
   string text,
   double angle,
   FontFamily fontFamily,
   double fontSize,
   FontStretch fontStretch,
   FontStyle fontStyle,
   FontWeight fontWeight
)

パラメータ

text
テキスト文字列を設定します。
angle
テキストが回転される角度
fontFamily
フォント ファミリ。
fontSize
フォント サイズ。
fontStretch
フォントの拡大。
fontStyle
フォント スタイル。
fontWeight
フォントの太さ。

戻り値の型

測定された文字列のサイズ。
参照