'宣言 Public Overloads Function DrawString( _ ByVal text As System.String, _ ByVal font As Font, _ ByVal brush As System.Windows.Media.Color, _ ByVal rc As System.Windows.Rect, _ ByVal sf As StringFormat, _ ByVal widthCoeff As System.Single _ ) As System.Integer
public System.int DrawString( System.string text, Font font, System.Windows.Media.Color brush, System.Windows.Rect rc, StringFormat sf, System.float widthCoeff )
パラメータ
- text
- 描画するテキスト。
- font
- 描画テキストの外観とサイズを定義する Fontオブジェクト。
- brush
- 描画テキストの色を定義するオブジェクト。
- rc
- 描画テキストの位置をページの左上隅からのポイント数で指定する四角形構造体。
- sf
- 描画テキストに適用される書式設定属性を指定する StringFormatオブジェクト。
- widthCoeff
- テキスト文字の幅係数。デフォルトは 1.0 です。たとえば、横倍角の場合は 2.0 を使用します。
戻り値の型
指定された四角形に収まらないために出力されなかった最初の文字のインデックス。