IGraphicsDrawString Method

Draws the specified text string at the specified location with the specified ColorBrush and FontInfo objects using the formatting attributes of the specified StringOptions.

Definition

Namespace: SMath.Drawing
Assembly: SMath.Drawing (in SMath.Drawing.dll) Version: 1.4.0.0
C#
void DrawString(
	string text,
	FontInfo font,
	ColorBrush brush,
	float x,
	float y,
	float width,
	StringOptions format
)

Parameters

text  String
String to draw.
font  FontInfo
FontInfo that defines the text format of the string.
brush  ColorBrush
ColorBrush that determines the color and texture of the drawn text.
x  Single
Specifies the left coordinate of the drawn text.
y  Single
Specifies the upper coordinate of the drawn text.
width  Single
Maximum width available to draw.
format  StringOptions
StringOptions that specifies formatting attributes, such as line spacing and alignment, that are applied to the drawn text.

See Also