編集

次の方法で共有


ActivityDesignerPaint.DrawText Method

Definition

Draws text on the activity designer surface.

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

The Graphics on which to draw the text.

font
Font

The Font used to draw the text.

text
String

The text to draw.

boundingRect
Rectangle

The bounding Rectangle in which the text must be drawn.

alignment
StringAlignment

The StringAlignment that specifies where the text is aligned in the bounding rectangle.

textQuality
TextQuality

The TextQuality that specifies the quality setting to draw the text.

textBrush
Brush

The Brush to draw the text.

Exceptions

graphics, font, text, or textBrush contains a null reference (Nothing in Visual Basic).

Applies to