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

描画するSystem.Drawing.Graphicsオブジェクト。
System.Drawing.Rectangleの値は塗りつぶす矩形を示します。
stringは描画する内容を示します。
System.Drawing.Imageはイメージを示します。
System.Drawing.Fontの値はフォントを示します。
テキストの色を表すSystem.Drawing.Color
無効になっているかどうかを表すbool値。
キャプションおよびイメージを描画します。
構文
Protected 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 _
) 

パラメータ

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

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