title: How to truncate a string to fit in a container?
body: <p>There are a lot of questions (EG: <a href="https://stackoverflow.com/questions/2776673/how-do-i-truncate-a-net-string">1</a>, <a href="https://stackoverflow.com/questions/6227661/how-to-truncate-a-string-in-net?rq=1">2</a>, <a href="https://stackoverflow.com/questions/6724840/how-can-i-truncate-my-strings-with-a-if-they-are-too-long">3</a>, <a href="https://stackoverflow.com/questions/14448511/how-to-limit-text-string-in-eval">4</a>, <a href="https://stackoverflow.com/questions/6724840/how-can-i-truncate-my-strings-with-a-if-they-are-too-long?lq=1">5</a>) asking how you can truncate a string to a desired amount of characters. But I want a piece of text truncated to fit in a container. (IE: crop the string by it's width in <strong>pixels</strong>, <strong>not characters</strong>). </p>
  
  <p>This is easy if you use WPF, but not so much in WinForms...</p>
  
  <p>So: <strong>how can you truncate a string to make it fit in a container?</strong></p>