ActivityDesignerPaint.DrawText Yöntem

Tanım

Etkinlik tasarımcısının yüzeyine metin çizer.

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)

Parametreler

graphics
Graphics

Metnin Graphics çizildiği yer.

font
Font

Metni Font çizmek için kullanılır.

text
String

Çizecek metin.

boundingRect
Rectangle

Metnin çizilmesi gereken sınırlayıcı Rectangle .

alignment
StringAlignment

Metnin StringAlignment sınırlayıcı dikdörtgende hizalandığı yeri belirten.

textQuality
TextQuality

Metni TextQuality çizmek için kalite ayarını belirten.

textBrush
Brush

Brush Metni çizmek için.

Özel durumlar

graphics, font, text veya textBrush null başvuru içeriyor (Visual Basic'de Nothing).

Şunlara uygulanır