PowerTools PlusPak for Windows Forms 8.0J
DrawText(Graphics,Rectangle,String,Image,Font,Color,Boolean,Rectangle,Rectangle) メソッド

描画する System.Drawing.Graphics オブジェクト。
その内部に描画する矩形を示す System.Drawing.Rectangle 値。
描画する内容を示す string
イメージを示す System.Drawing.Image
フォントを示す System.Drawing.Font 値。
テキストの色を表す System.Drawing.Color
無効かどうかを表す bool 値。
テキストの矩形を表す値。
イメージの矩形を表す値。
キャプションとイメージを描画します。
構文
Public Overloads Sub DrawText( _
   ByVal graphics As Graphics, _
   ByVal rectangle As Rectangle, _
   ByVal text As String, _
   ByVal image As Image, _
   ByVal font As Font, _
   ByVal color As Color, _
   ByVal disabled As Boolean, _
   ByRef textRectangle As Rectangle, _
   ByRef imageRectangle As Rectangle _
) 

パラメータ

graphics
描画する System.Drawing.Graphics オブジェクト。
rectangle
その内部に描画する矩形を示す System.Drawing.Rectangle 値。
text
描画する内容を示す string
image
イメージを示す System.Drawing.Image
font
フォントを示す System.Drawing.Font 値。
color
テキストの色を表す System.Drawing.Color
disabled
無効かどうかを表す bool 値。
textRectangle
テキストの矩形を表す値。
imageRectangle
イメージの矩形を表す値。
解説
この関数は、レイアウト情報に従ってイメージとテキストの矩形を計算した後、他の関数を呼び出してイメージとテキストを描画します。
プラットフォーム

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

参照

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

Send Feedback