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

 

   
Notes
 
     

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.

 

   
See Also
 
     

None.

 

   
Example
 
     

[Visual Basic]
Dim ca As New Canvas
ca.TextFont = "Georgia, Times"
ca.TextStyle = "bold, italic"

[C#]
Canvas ca = new Canvas();
ca.TextFont = "Georgia, Times";
ca.TextStyle = "bold, italic";