ActivityDesignerPaint.DrawText Methode

Definitie

Hiermee tekent u tekst op het ontwerpoppervlak voor activiteiten.

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)

Parameters

graphics
Graphics

Het Graphics teken waarop de tekst moet worden getekend.

font
Font

De Font gebruikte om de tekst te tekenen.

text
String

De te tekenen tekst.

boundingRect
Rectangle

De begrenzing Rectangle waarin de tekst moet worden getekend.

alignment
StringAlignment

De StringAlignment tekst die aangeeft waar de tekst is uitgelijnd in de begrenzingsrechthoek.

textQuality
TextQuality

Hiermee TextQuality geeft u de kwaliteitsinstelling op om de tekst te tekenen.

textBrush
Brush

De Brush tekenreeks.

Uitzonderingen

graphics, font, text of textBrush bevat een null-verwijzing (Nothing in Visual Basic).

Van toepassing op