Click or drag to resize
DrawingWindowDrawText Method (Double, Double, String, Double, Double, Boolean)
Draws a text using the current font starting at (X, Y) given the desired font size. The text is defaulted to flow from left to right can be specified to flow from right to left.

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public DrawingVisual DrawText(
	double x,
	double y,
	string text,
	double fontSize,
	double degrees,
	bool isRightToLeft = false
)

Parameters

x
Type: SystemDouble
the starting X-coordinate of the text
y
Type: SystemDouble
the starting Y-coordinate of the text
text
Type: SystemString
the text to draw
fontSize
Type: SystemDouble
font size as used in a word processor
degrees
Type: SystemDouble
the degree to rotate around the starting point
isRightToLeft (Optional)
Type: SystemBoolean
default to left to right flow

Return Value

Type: DrawingVisual
A drawing visual as handle to the drawing
See Also