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, string s, System.Drawing.Font font, System.Drawing.Color color, System.Drawing.RectangleF layoutRectangle, System.Drawing.StringFormat format);

パラメーター

graphics
Graphics

描画する Graphics

s
String

描画する文字列。

font
Font

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

color
Color

文字列の背景の Color

layoutRectangle
RectangleF

文字列の大きさを表す RectangleF

format
StringFormat

文字列に適用される StringFormat

適用対象

.NET Framework 4.8.1 およびその他のバージョン
製品 バージョン
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

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

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

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);

パラメーター

dc
IDeviceContext

GDI ベースの TextRenderer

s
String

描画する文字列。

font
Font

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

color
Color

文字列の背景の Color

layoutRectangle
Rectangle

文字列の大きさを表す RectangleF

format
TextFormatFlags

文字列に適用される StringFormat

適用対象

.NET Framework 4.8.1 およびその他のバージョン
製品 バージョン
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9