Szerkesztés

Megosztás a következőn keresztül:


ControlPaint.DrawStringDisabled Method

Definition

Draws the specified string in a disabled state.

Overloads

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

Draws the specified string in a disabled state on the specified graphics surface; within the specified bounds; and in the specified font, color, and format.

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

Draws the specified string in a disabled state on the specified graphics surface, within the specified bounds, and in the specified font, color, and format, using the specified GDI-based TextRenderer.

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

Source:
ControlPaint.cs
Source:
ControlPaint.cs
Source:
ControlPaint.cs

Draws the specified string in a disabled state on the specified graphics surface; within the specified bounds; and in the specified font, color, and format.

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)

Parameters

graphics
Graphics

The Graphics to draw on.

s
String

The string to draw.

font
Font

The Font to draw the string with.

color
Color

The Color of the background behind the string.

layoutRectangle
RectangleF

The RectangleF that represents the dimensions of the string.

format
StringFormat

The StringFormat to apply to the string.

Applies to

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

Source:
ControlPaint.cs
Source:
ControlPaint.cs
Source:
ControlPaint.cs

Draws the specified string in a disabled state on the specified graphics surface, within the specified bounds, and in the specified font, color, and format, using the specified GDI-based 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)

Parameters

dc
IDeviceContext

The GDI-based TextRenderer.

s
String

The string to draw.

font
Font

The Font to draw the string with.

color
Color

The Color of the background behind the string.

layoutRectangle
Rectangle

The RectangleF that represents the dimensions of the string.

format
TextFormatFlags

The StringFormat to apply to the string.

Applies to