Ribbon for WinForms
DrawText メソッド (TextBoxEx)

C1.Win.8 アセンブリ > C1.Framework.Extension 名前空間 > TextBoxEx クラス : DrawText メソッド
The System.Windows.Forms.TextBox in which the text is drawn.
The System.Drawing.Graphics object used to paint.
The text to be drawn.
The foreground color of the text.
The background color of the text.
Draws a text in the System.Windows.Forms.TextBox client area.
シンタックス
'宣言
 
Public Shared Sub DrawText( _
   ByVal textBox As TextBox, _
   ByVal graphics As Graphics, _
   ByVal text As String, _
   ByVal foreColor As Color, _
   ByVal backColor As Color _
) 
public static void DrawText( 
   TextBox textBox,
   Graphics graphics,
   string text,
   Color foreColor,
   Color backColor
)

パラメータ

textBox
The System.Windows.Forms.TextBox in which the text is drawn.
graphics
The System.Drawing.Graphics object used to paint.
text
The text to be drawn.
foreColor
The foreground color of the text.
backColor
The background color of the text.
解説
This method is used to draw placeholder text or the text of a disabled text box.
参照

TextBoxEx クラス
TextBoxEx メンバ