次の方法で共有


ControlPaint.DrawStringDisabled メソッド

指定した文字列を無効状態で、指定した範囲内の、指定したグラフィックスの表面に、指定したフォント、色、および書式を使用して描画します。

Public Shared Sub DrawStringDisabled( _
   ByVal graphics As Graphics, _   ByVal s As String, _   ByVal font As Font, _   ByVal color As Color, _   ByVal layoutRectangle As RectangleF, _   ByVal format As StringFormat _)
[C#]
public static void DrawStringDisabled(Graphicsgraphics,strings,Fontfont,Colorcolor,RectangleFlayoutRectangle,StringFormatformat);
[C++]
public: static void DrawStringDisabled(Graphics* graphics,String* s,Font* font,Colorcolor,RectangleFlayoutRectangle,StringFormat* format);
[JScript]
public static function DrawStringDisabled(
   graphics : Graphics,s : String,font : Font,color : Color,layoutRectangle : RectangleF,format : StringFormat);

パラメータ

  • graphics
    描画する Graphics
  • s
    描画する文字列。
  • font
    文字列を描画するための Font
  • color
    文字列を描画するための Color
  • layoutRectangle
    文字列の大きさを表す RectangleF
  • format
    文字列に適用される StringFormat

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

ControlPaint クラス | ControlPaint メンバ | System.Windows.Forms 名前空間