From the course: LINQPad Essential Training

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Use a fixed-width font in the results pane

Use a fixed-width font in the results pane - LINQ Tutorial

From the course: LINQPad Essential Training

Use a fixed-width font in the results pane

- [Instructor] At this point in the course, we've seen many examples of formatted output in the results panel. We can customize it further. Let's change the output to use a fixed width font. There are several ways to do this. In this example, we'll look at using the LINQPad Util class. First of all, let's see what we've got here for data. When I run the query, I get a list of strings. There's three items, there are the names of some colors, and I want to work with the Util class, so I'll type in Util dot. There's a lot of useful methods in here. We're looking for one called FixedFont. That takes one required parameter, the data, and two optional parameters. So I'll say data:, and then I'll pass in colors as my argument, and then I still have to dump the output, so I'll call the Dump method. So what'll happen is the Util will change the output in the window to use the fixed font when you call Dump, and it looks like…

Contents