ICanvasRenderingContext2D.FillText

FillText(String, double, double)

Draws (fills) a given text at the given (x,y) position.

public void FillText(String text, double x, double y)
ParameterTypeDescription
textStringThe text to draw using the current font, textAlign, textBaseline, and direction values.
xDoubleThe x axis of the coordinate for the text starting point.
yDoubleThe y axis of the coordinate for the text starting point.

See Also


FillText(String, double, double, double)

Draws (fills) a given text at the given (x,y) position.

public void FillText(String text, double x, double y, double maxWidth)
ParameterTypeDescription
textStringThe text to draw using the current font, textAlign, textBaseline, and direction values.
xDoubleThe x axis of the coordinate for the text starting point.
yDoubleThe y axis of the coordinate for the text starting point.
maxWidthDoubleThe maximum width to draw. If specified, and the String is computed to be wider than this width, the font is adjusted to use a more horizontally condensed font (if one is available or if a reasonably readable one can be synthesized by scaling the current font horizontally) or a smaller font.

See Also