PDF for WPF and Silverlight
DrawString(String,Font,Color,Rect,Int32,StringFormat,Single) メソッド

C1.WPF.Pdf.4.5.2 アセンブリ > C1.WPF.Pdf 名前空間 > C1PdfDocument クラス > DrawString メソッド : DrawString(String,Font,Color,Rect,Int32,StringFormat,Single) メソッド
描画するテキスト。
テキストの描画に使用する Font
テキストの位置をページの左上隅からのポイント数で指定する四角形構造体。
レンダリングされる最初の文字のインデックス。
テキストに適用される書式設定属性を指定する StringFormatオブジェクト。
文字に適用される幅係数。デフォルトは 1.0 です。たとえば、横倍角の場合は 2.0 を使用します。
指定されたテキスト文字列を指定された四角形内に、指定された System.Windows.Media.Brushおよび Fontで、指定された StringFormatオブジェクトの書式設定属性と指定された文字幅係数を使用して描画します。
シンタックス
'宣言
 
Public Overloads Function DrawString( _
   ByVal text As System.String, _
   ByVal font As Font, _
   ByVal color As System.Windows.Media.Color, _
   ByVal rc As System.Windows.Rect, _
   ByVal firstChar As System.Integer, _
   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 color,
   System.Windows.Rect rc,
   System.int firstChar,
   StringFormat sf,
   System.float widthCoeff
)

パラメータ

text
描画するテキスト。
font
テキストの描画に使用する Font
color
rc
テキストの位置をページの左上隅からのポイント数で指定する四角形構造体。
firstChar
レンダリングされる最初の文字のインデックス。
sf
テキストに適用される書式設定属性を指定する StringFormatオブジェクト。
widthCoeff
文字に適用される幅係数。デフォルトは 1.0 です。たとえば、横倍角の場合は 2.0 を使用します。

戻り値の型

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

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