ControlPaint.DrawStringDisabled Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
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
- s
- String
The string to draw.
- 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)
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
The GDI-based TextRenderer.
- s
- String
The string to draw.
- layoutRectangle
- Rectangle
The RectangleF that represents the dimensions of the string.
- format
- TextFormatFlags
The StringFormat to apply to the string.