ActivityDesignerPaint.DrawText 方法

定義

在活動設計器表面繪製文字。

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)

參數

graphics
Graphics

用來 Graphics 繪製文字。

font
Font

他們 Font 用來畫文字。

text
String

要畫的文字。

boundingRect
Rectangle

文字必須繪製的邊界 Rectangle

alignment
StringAlignment

StringAlignment 個指定了文字在邊界矩形中對齊的位置。

textQuality
TextQuality

TextQuality 個設定是為了畫出文字的品質設定。

textBrush
Brush

然後 Brush 畫文字。

例外狀況

graphicsfonttexttextBrush 包含一個空參考(Visual Basic 中的 Nothing)。

適用於