title: C# text align in listbox
body: <p>I have list box where I dynamically insert items. I want them to be aligned into "columns". I have this code to insert and align:</p>
  
  <pre><code>listbox1.Items.Add(reader2[1].ToString().PadRight(15) + numericUpDown1.Value.ToString() + "x".PadRight(10) + skupaj.ToString() + " €");
  </code></pre>
  
  <p>And this results into this: <img src="https://i.stack.imgur.com/4i7xJ.png" alt="listbox"></p>
  
  <p>I also saw this method:</p>
  
  <pre><code> var daa = String.Format("{0, 5} {1, 10}", name, price);
  </code></pre>
  
  <p>But I do not know how this works.</p>