DrawingWindow.DrawText Method (Double, Double, String, 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: Algs4NetAssembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic DrawingVisual DrawText(
double x,
double y,
string text,
double fontSize,
bool isRightToLeft = false
)
Parameters
- x
- Type: System.Double
the starting X-coordinate of the text - y
- Type: System.Double
the starting Y-coordinate of the text - text
- Type: System.String
the text to draw - fontSize
- Type: System.Double
font size as used in a word processor - isRightToLeft (Optional)
- Type: System.Boolean
default to left to right flow
Return Value
Type:
DrawingVisualA drawing visual as handle to the drawing
See Also