DataGridTextBoxColumn.PaintText 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 o texto especificado e o retângulo circundante no local especificado.
Sobrecargas
| Name | Description |
|---|---|
| PaintText(Graphics, Rectangle, String, Boolean) |
Desenha o texto e o retângulo na localização indicada com o alinhamento especificado. |
| PaintText(Graphics, Rectangle, String, Brush, Brush, Boolean) |
Desenha o texto e o retângulo no local especificado com as cores e alinhamento especificados. |
PaintText(Graphics, Rectangle, String, Boolean)
Desenha o texto e o retângulo na localização indicada com o alinhamento especificado.
protected:
void PaintText(System::Drawing::Graphics ^ g, System::Drawing::Rectangle bounds, System::String ^ text, bool alignToRight);
protected void PaintText(System.Drawing.Graphics g, System.Drawing.Rectangle bounds, string text, bool alignToRight);
member this.PaintText : System.Drawing.Graphics * System.Drawing.Rectangle * string * bool -> unit
Protected Sub PaintText (g As Graphics, bounds As Rectangle, text As String, alignToRight As Boolean)
Parâmetros
- text
- String
O fio a desenhar para o ecrã.
- alignToRight
- Boolean
Um valor que indica se o texto está alinhado à direita.
Observações
O PaintText método utiliza o DataFormats.Format conjunto de objetos com a Format propriedade para formatar o valor antes de o desenhar para o ecrã.
O Paint método chama o PaintText método.
Ver também
Aplica-se a
PaintText(Graphics, Rectangle, String, Brush, Brush, Boolean)
Desenha o texto e o retângulo no local especificado com as cores e alinhamento especificados.
protected:
void PaintText(System::Drawing::Graphics ^ g, System::Drawing::Rectangle textBounds, System::String ^ text, System::Drawing::Brush ^ backBrush, System::Drawing::Brush ^ foreBrush, bool alignToRight);
protected void PaintText(System.Drawing.Graphics g, System.Drawing.Rectangle textBounds, string text, System.Drawing.Brush backBrush, System.Drawing.Brush foreBrush, bool alignToRight);
member this.PaintText : System.Drawing.Graphics * System.Drawing.Rectangle * string * System.Drawing.Brush * System.Drawing.Brush * bool -> unit
Protected Sub PaintText (g As Graphics, textBounds As Rectangle, text As String, backBrush As Brush, foreBrush As Brush, alignToRight As Boolean)
Parâmetros
- text
- String
O fio a desenhar para o ecrã.
- alignToRight
- Boolean
Um valor que indica se o texto está alinhado à direita.
Observações
O PaintText método usa a Format propriedade para formatar o valor antes de o desenhar para o ecrã.
O Paint método chama o PaintText método.