Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ ms.assetid: 48fc34f3-f236-4b01-a0cb-f0752e6d22ae
## Example
The following code example draws text with two different quality settings.

The following illustration shows the output of the cod example code.

![Fonts Text](../../../../docs/framework/winforms/advanced/media/fontstext10.png "FontsText10")

[!code-csharp[System.Drawing.FontsAndText#21](../../../../samples/snippets/csharp/VS_Snippets_Winforms/System.Drawing.FontsAndText/CS/Class1.cs#21)]
[!code-vb[System.Drawing.FontsAndText#21](../../../../samples/snippets/visualbasic/VS_Snippets_Winforms/System.Drawing.FontsAndText/VB/Class1.vb#21)]

The following illustration shows the output of the example code:

![Fonts Text](../../../../docs/framework/winforms/advanced/media/fontstext10.png "FontsText10")

## Compiling the Code
The preceding code example is designed for use with Windows Forms, and it requires <xref:System.Windows.Forms.PaintEventArgs>`e`, which is a parameter of <xref:System.Windows.Forms.PaintEventHandler>.
The preceding code example is designed for use with Windows Forms, and it requires <xref:System.Windows.Forms.PaintEventArgs> `e`, which is a parameter of <xref:System.Windows.Forms.PaintEventHandler>.

## See Also
[Using Fonts and Text](../../../../docs/framework/winforms/advanced/using-fonts-and-text.md)