DrawingWindowDrawText 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)
Syntax public DrawingVisual DrawText(
double x,
double y,
string text,
double fontSize,
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 - isRightToLeft (Optional)
- Type: SystemBoolean
default to left to right flow
Return Value
Type:
DrawingVisualA drawing visual as handle to the drawing
See Also