VisualStyleRenderer.DrawText Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Desenha texto dentro dos limites especificados.
Sobrecargas
| Name | Description |
|---|---|
| DrawText(IDeviceContext, Rectangle, String, Boolean, TextFormatFlags) |
Desenha texto no retângulo delimitador especificado, com a opção de mostrar texto desativado e aplicar outras formatações de texto. |
| DrawText(IDeviceContext, Rectangle, String) |
Desenha texto nos limites especificados usando a formatação padrão. |
| DrawText(IDeviceContext, Rectangle, String, Boolean) |
Desenha texto nos limites especificados com a opção de mostrar texto desativado. |
DrawText(IDeviceContext, Rectangle, String, Boolean, TextFormatFlags)
Desenha texto no retângulo delimitador especificado, com a opção de mostrar texto desativado e aplicar outras formatações 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
Eles IDeviceContext costumavam desenhar o texto.
- textToDraw
- String
O texto para desenhar.
- drawDisabled
- Boolean
true desenhar texto com tons de cinzento; caso contrário, false.
- flags
- TextFormatFlags
Uma combinação bit a bit dos TextFormatFlags valores.
Exceções
dc é null.
Aplica-se a
DrawText(IDeviceContext, Rectangle, String)
Desenha texto nos limites especificados usando a formatação padrão.
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
Eles IDeviceContext costumavam desenhar o texto.
- textToDraw
- String
O texto para desenhar.
Exceções
dc é null.
Aplica-se a
DrawText(IDeviceContext, Rectangle, String, Boolean)
Desenha texto nos limites especificados com a opção de mostrar texto desativado.
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
Eles IDeviceContext costumavam desenhar o texto.
- textToDraw
- String
O texto para desenhar.
- drawDisabled
- Boolean
true desenhar texto com tons de cinzento; caso contrário, false.
Exceções
dc é null.