VisualStyleRenderer.DrawText Método

Definición

Dibuja texto en los límites especificados.

Sobrecargas

Nombre Description
DrawText(IDeviceContext, Rectangle, String, Boolean, TextFormatFlags)

Dibuja texto en el rectángulo delimitador especificado con la opción de mostrar texto deshabilitado y aplicar otro formato de texto.

DrawText(IDeviceContext, Rectangle, String)

Dibuja texto en los límites especificados con formato predeterminado.

DrawText(IDeviceContext, Rectangle, String, Boolean)

Dibuja texto en los límites especificados con la opción de mostrar texto deshabilitado.

DrawText(IDeviceContext, Rectangle, String, Boolean, TextFormatFlags)

Dibuja texto en el rectángulo delimitador especificado con la opción de mostrar texto deshabilitado y aplicar otro formato de texto.

public:
 void DrawText(System::Drawing::IDeviceContext ^ dc, System::Drawing::Rectangle bounds, System::String ^ textToDraw, bool drawDisabled, System::Windows::Forms::TextFormatFlags flags);
public void DrawText(System.Drawing.IDeviceContext dc, System.Drawing.Rectangle bounds, string textToDraw, bool drawDisabled, System.Windows.Forms.TextFormatFlags flags);
member this.DrawText : System.Drawing.IDeviceContext * System.Drawing.Rectangle * string * bool * System.Windows.Forms.TextFormatFlags -> unit
Public Sub DrawText (dc As IDeviceContext, bounds As Rectangle, textToDraw As String, drawDisabled As Boolean, flags As TextFormatFlags)

Parámetros

dc
IDeviceContext

IDeviceContext utilizado para dibujar el texto.

bounds
Rectangle

objeto Rectangle en el que se va a dibujar el texto.

textToDraw
String

Texto que se va a dibujar.

drawDisabled
Boolean

true para dibujar texto atenuado; de lo contrario, false.

flags
TextFormatFlags

Combinación bit a bit de los TextFormatFlags valores.

Excepciones

dc es null.

Se aplica a

DrawText(IDeviceContext, Rectangle, String)

Dibuja texto en los límites especificados con formato predeterminado.

public:
 void DrawText(System::Drawing::IDeviceContext ^ dc, System::Drawing::Rectangle bounds, System::String ^ textToDraw);
public void DrawText(System.Drawing.IDeviceContext dc, System.Drawing.Rectangle bounds, string textToDraw);
member this.DrawText : System.Drawing.IDeviceContext * System.Drawing.Rectangle * string -> unit
Public Sub DrawText (dc As IDeviceContext, bounds As Rectangle, textToDraw As String)

Parámetros

dc
IDeviceContext

IDeviceContext utilizado para dibujar el texto.

bounds
Rectangle

objeto Rectangle en el que se va a dibujar el texto.

textToDraw
String

Texto que se va a dibujar.

Excepciones

dc es null.

Se aplica a

DrawText(IDeviceContext, Rectangle, String, Boolean)

Dibuja texto en los límites especificados con la opción de mostrar texto deshabilitado.

public:
 void DrawText(System::Drawing::IDeviceContext ^ dc, System::Drawing::Rectangle bounds, System::String ^ textToDraw, bool drawDisabled);
public void DrawText(System.Drawing.IDeviceContext dc, System.Drawing.Rectangle bounds, string textToDraw, bool drawDisabled);
member this.DrawText : System.Drawing.IDeviceContext * System.Drawing.Rectangle * string * bool -> unit
Public Sub DrawText (dc As IDeviceContext, bounds As Rectangle, textToDraw As String, drawDisabled As Boolean)

Parámetros

dc
IDeviceContext

IDeviceContext utilizado para dibujar el texto.

bounds
Rectangle

objeto Rectangle en el que se va a dibujar el texto.

textToDraw
String

Texto que se va a dibujar.

drawDisabled
Boolean

true para dibujar texto atenuado; de lo contrario, false.

Excepciones

dc es null.

Se aplica a