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 包含 null 引用(Visual Basic中的 Nothing)。

适用于