PDF for .NET
DrawString(String,Font,Color,PointF,Single) メソッド

C1.C1Pdf.4.5.2 アセンブリ > C1.C1Pdf 名前空間 > C1PdfDocument クラス > DrawString メソッド : DrawString(String,Font,Color,PointF,Single) メソッド
描画する文字列。
描画テキストの外観とサイズを定義する System.Drawing.Fontオブジェクト。
描画テキストの位置をページの左上隅からのポイント数で指定するポイント構造体。
テキスト文字の幅係数。デフォルトは 1.0 です。たとえば、横倍角の場合は 2.0 を使用します。
指定されたテキスト文字列を指定されたポイントに、指定された System.Drawing.Brushオブジェクトと System.Drawing.Fontオブジェクト、および 指定された幅係数のテキスト文字を使用して描画します。
シンタックス
'宣言
 
Public Overloads Function DrawString( _
   ByVal text As System.String, _
   ByVal font As System.Drawing.Font, _
   ByVal color As System.Drawing.Color, _
   ByVal pt As System.Drawing.PointF, _
   Optional ByVal widthCoeff As System.Single _
) As System.Integer
public System.int DrawString( 
   System.string text,
   System.Drawing.Font font,
   System.Drawing.Color color,
   System.Drawing.PointF pt,
   System.float widthCoeff
)

パラメータ

text
描画する文字列。
font
描画テキストの外観とサイズを定義する System.Drawing.Fontオブジェクト。
color
pt
描画テキストの位置をページの左上隅からのポイント数で指定するポイント構造体。
widthCoeff
テキスト文字の幅係数。デフォルトは 1.0 です。たとえば、横倍角の場合は 2.0 を使用します。

戻り値の型

指定された四角形に収まらないために出力されなかった最初の文字のインデックス。
参照

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