Share via


ControlPaint.DrawStringDisabled メソッド

定義

指定した文字列を無効状態で描画します。

オーバーロード

DrawStringDisabled(Graphics, String, Font, Color, RectangleF, StringFormat)

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

DrawStringDisabled(IDeviceContext, String, Font, Color, Rectangle, TextFormatFlags)

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

DrawStringDisabled(Graphics, String, Font, Color, RectangleF, StringFormat)

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

public:
 static void DrawStringDisabled(System::Drawing::Graphics ^ graphics, System::String ^ s, System::Drawing::Font ^ font, System::Drawing::Color color, System::Drawing::RectangleF layoutRectangle, System::Drawing::StringFormat ^ format);
public static void DrawStringDisabled (System.Drawing.Graphics graphics, string s, System.Drawing.Font font, System.Drawing.Color color, System.Drawing.RectangleF layoutRectangle, System.Drawing.StringFormat format);
static member DrawStringDisabled : System.Drawing.Graphics * string * System.Drawing.Font * System.Drawing.Color * System.Drawing.RectangleF * System.Drawing.StringFormat -> unit
Public Shared Sub DrawStringDisabled (graphics As Graphics, s As String, font As Font, color As Color, layoutRectangle As RectangleF, format As StringFormat)

パラメーター

graphics
Graphics

描画する Graphics

s
String

描画する文字列。

font
Font

文字列を描画するための Font

color
Color

文字列の背景の Color

layoutRectangle
RectangleF

文字列の大きさを表す RectangleF

format
StringFormat

文字列に適用される StringFormat

適用対象

DrawStringDisabled(IDeviceContext, String, Font, Color, Rectangle, TextFormatFlags)

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

public:
 static void DrawStringDisabled(System::Drawing::IDeviceContext ^ dc, System::String ^ s, System::Drawing::Font ^ font, System::Drawing::Color color, System::Drawing::Rectangle layoutRectangle, System::Windows::Forms::TextFormatFlags format);
public static void DrawStringDisabled (System.Drawing.IDeviceContext dc, string s, System.Drawing.Font font, System.Drawing.Color color, System.Drawing.Rectangle layoutRectangle, System.Windows.Forms.TextFormatFlags format);
static member DrawStringDisabled : System.Drawing.IDeviceContext * string * System.Drawing.Font * System.Drawing.Color * System.Drawing.Rectangle * System.Windows.Forms.TextFormatFlags -> unit
Public Shared Sub DrawStringDisabled (dc As IDeviceContext, s As String, font As Font, color As Color, layoutRectangle As Rectangle, format As TextFormatFlags)

パラメーター

dc
IDeviceContext

GDI ベースの TextRenderer

s
String

描画する文字列。

font
Font

文字列を描画するための Font

color
Color

文字列の背景の Color

layoutRectangle
Rectangle

文字列の大きさを表す RectangleF

format
TextFormatFlags

文字列に適用される StringFormat

適用対象