Click or drag to resize
CanvasDrawingSession.DrawText Method (String, Rect, Color, CanvasTextFormat)
Draws text inside the specified rectangle.

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,
	Rect rectangle,
	Color color,
	CanvasTextFormat format
)

Parameters

text
Type: System.String
rectangle
Type: Windows.Foundation.Rect
color
Type: Windows.UI.Color
format
Type: Microsoft.Graphics.Canvas.Text.CanvasTextFormat
Remarks
The text format object is allowed to be null.
See Also