Chapter 9. Fonts, Text, and Printing

Topics in This Chapter

  • Fonts: .NET classes support the creation of individual font objects and font families. Treating a font as an object allows an application to set a font's style and size through properties.

  • Text: The Graphics.DrawString method and StringFormat class are used together to draw and format text on a drawing surface.

  • Printing: The PrintDocument class provides the methods, properties, and events used to control .NET printing. It exposes properties that allow printer selection, page setup, and choice of pages to be printed.

  • Creating a Custom PrintDocument Class: A custom PrintDocument class provides an application greater control over the printing process and can be used to ensure a consistent format ...

Get Core C# and .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.