Click or drag to resize
CanvasDrawingSessionDrawText Method (String, Single, Single, Single, Single, ICanvasBrush, CanvasTextFormat)
Draws text inside the specified rectangle, using a brush to define the color.

Namespace:  Microsoft.Graphics.Canvas
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public void DrawText(
	string text,
	float x,
	float y,
	float w,
	float h,
	ICanvasBrush brush,
	CanvasTextFormat format
)

Parameters

text
Type: SystemString
x
Type: SystemSingle
y
Type: SystemSingle
w
Type: SystemSingle
h
Type: SystemSingle
brush
Type: Microsoft.Graphics.Canvas.BrushesICanvasBrush
format
Type: Microsoft.Graphics.Canvas.TextCanvasTextFormat
Remarks
The text format object is allowed to be null.
See Also