ActivityDesignerPaint.DrawText Méthode

Définition

Dessine du texte sur l’aire du concepteur d’activités.

public:
 static void DrawText(System::Drawing::Graphics ^ graphics, System::Drawing::Font ^ font, System::String ^ text, System::Drawing::Rectangle boundingRect, System::Drawing::StringAlignment alignment, System::Workflow::ComponentModel::Design::TextQuality textQuality, System::Drawing::Brush ^ textBrush);
public static void DrawText(System.Drawing.Graphics graphics, System.Drawing.Font font, string text, System.Drawing.Rectangle boundingRect, System.Drawing.StringAlignment alignment, System.Workflow.ComponentModel.Design.TextQuality textQuality, System.Drawing.Brush textBrush);
static member DrawText : System.Drawing.Graphics * System.Drawing.Font * string * System.Drawing.Rectangle * System.Drawing.StringAlignment * System.Workflow.ComponentModel.Design.TextQuality * System.Drawing.Brush -> unit
Public Shared Sub DrawText (graphics As Graphics, font As Font, text As String, boundingRect As Rectangle, alignment As StringAlignment, textQuality As TextQuality, textBrush As Brush)

Paramètres

graphics
Graphics

Graphics Sur lequel dessiner le texte.

font
Font

Utilisé Font pour dessiner le texte.

text
String

Texte à dessiner.

boundingRect
Rectangle

Limite Rectangle dans laquelle le texte doit être dessiné.

alignment
StringAlignment

Qui StringAlignment spécifie où le texte est aligné dans le rectangle englobant.

textQuality
TextQuality

Qui TextQuality spécifie le paramètre de qualité pour dessiner le texte.

textBrush
Brush

Pour Brush dessiner le texte.

Exceptions

graphics, font, text ou textBrush contient une référence Null (Nothing dans Visual Basic).

S’applique à