DataGridTextBoxColumn.PaintText Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Dessine le texte spécifié et le rectangle environnant à l’emplacement spécifié.
Surcharges
| Nom | Description |
|---|---|
| PaintText(Graphics, Rectangle, String, Boolean) |
Dessine le texte et le rectangle à l’emplacement donné avec l’alignement spécifié. |
| PaintText(Graphics, Rectangle, String, Brush, Brush, Boolean) |
Dessine le texte et le rectangle à l’emplacement spécifié avec les couleurs et l’alignement spécifiés. |
PaintText(Graphics, Rectangle, String, Boolean)
- Source:
- DataGridTextBoxColumn.cs
- Source:
- DataGridTextBoxColumn.cs
Dessine le texte et le rectangle à l’emplacement donné avec l’alignement spécifié.
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)
Paramètres
- text
- String
Chaîne à dessiner à l’écran.
- alignToRight
- Boolean
Valeur indiquant si le texte est aligné à droite.
Remarques
La PaintText méthode utilise l’ensemble DataFormats.Format d’objets avec la Format propriété pour mettre en forme la valeur avant de la dessiner à l’écran.
La Paint méthode appelle la PaintText méthode.
Voir aussi
S’applique à
PaintText(Graphics, Rectangle, String, Brush, Brush, Boolean)
- Source:
- DataGridTextBoxColumn.cs
- Source:
- DataGridTextBoxColumn.cs
Dessine le texte et le rectangle à l’emplacement spécifié avec les couleurs et l’alignement spécifiés.
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)
Paramètres
- text
- String
Chaîne à dessiner à l’écran.
- alignToRight
- Boolean
Valeur indiquant si le texte est aligné à droite.
Remarques
La PaintText méthode utilise la Format propriété pour mettre en forme la valeur avant de la dessiner à l’écran.
La Paint méthode appelle la PaintText méthode.