Type Default Value Read Only Static Description
String null No No The style of font used for drawing text.
Notes

This is the text style that will be used when drawing text on a Canvas. See Canvas.TextStyle for further details.

See Also

TextStyle

Example

Here we draw some text on a Canvas using a specific text style (bold, italic).

[C#]Canvas canvas = new Canvas();
DrawOptions drawOpts = new DrawOptions(canvas);
drawOpts.TextStyle = "bold, italic";
canvas.DrawText("Here is some text to draw...", drawOpts);
canvas.SaveAs(Server.MapPath("DrawOptions_TextStyle_100.png"));


[Visual Basic]Dim canvas As New Canvas()
Dim drawOpts As New DrawOptions()
drawOpts.TextStyle = "bold, italic"
canvas.DrawText("Here is some text to draw...", drawOpts)
canvas.SaveAs(Server.MapPath("DrawOptions_TextStyle_100.png"))



DrawOptions_TextStyle_100.png