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

The style is a comma delimited list of the types of style item that you want. You can include the following values in your list:

  • bold
  • italic
  • underline
  • strikethru

The default TextStyle is empty - no special styles.

This property is a shortcut equivalent to the TextStyle of the DrawOptions.



Canvas canvas = new Canvas();
canvas.TextFont = "Georgia, Times";
canvas.TextStyle = "bold, italic";

[Visual Basic]

Dim canvas As New Canvas
canvas.TextFont = "Georgia, Times"
canvas.TextStyle = "bold, italic"