Skip to content

Glossary: C# Basics

Width

Also written: alignment, column width

A comma and a number after a value in braces pad it with spaces to that many characters. Positive aligns right and negative aligns left, as in `{price,8:C}`.

Where the book teaches it

Related terms

Currency format (:C)String interpolation