PDF for .NET
DrawString(String,Font,Brush,RectangleF,StringFormat) メソッド

C1.C1Pdf.4.5.2 アセンブリ > C1.C1Pdf 名前空間 > C1PdfDocument クラス > DrawString メソッド : DrawString(String,Font,Brush,RectangleF,StringFormat) メソッド
描画する文字列。
文字列の外観やサイズを定義する System.Drawing.Fontオブジェクト。
描画するテキストの色とテクスチャを決定する System.Drawing.Brushオブジェクト。
描画するテキストの位置を指定する System.Drawing.RectangleF構造体。
描画するテキストに適用される書式属性を指定する System.Drawing.StringFormatオブジェクト。
指定した System.Drawing.StringFormatの書式属性を使用して、指定した System.Drawing.Brushオブジェクトおよび System.Drawing.Fontオブジェクトで、指定した四角形に指定した文字列を描画します。
シンタックス
'宣言
 
Public Overloads Function DrawString( _
   ByVal text As System.String, _
   ByVal font As System.Drawing.Font, _
   ByVal brush As System.Drawing.Brush, _
   ByVal rc As System.Drawing.RectangleF, _
   ByVal sf As System.Drawing.StringFormat _
) As System.Integer
public System.int DrawString( 
   System.string text,
   System.Drawing.Font font,
   System.Drawing.Brush brush,
   System.Drawing.RectangleF rc,
   System.Drawing.StringFormat sf
)

パラメータ

text
描画する文字列。
font
文字列の外観やサイズを定義する System.Drawing.Fontオブジェクト。
brush
描画するテキストの色とテクスチャを決定する System.Drawing.Brushオブジェクト。
rc
描画するテキストの位置を指定する System.Drawing.RectangleF構造体。
sf
描画するテキストに適用される書式属性を指定する System.Drawing.StringFormatオブジェクト。

戻り値の型

指定した文字列が指定した四角形内に収まりきらなかった場合の、描画されなかった最初の文字のインデックス。
参照

C1PdfDocument クラス
C1PdfDocument メンバ
オーバーロード一覧
DrawString(String,Font,Brush,RectangleF,Int32,StringFormat) メソッド