0

We use the classic GDI+ DrawString method to output text and set the Trimming property of its format parameter to EllipsisCharacter (see also the StringTrimming enumeration). If the output rectangle is enough small so it can display just one character, the ellipsis is not present on the screen - which misleads the user:

enter image description here

Is there a way to solve this problem?

TecMan
  • 2,743
  • 2
  • 30
  • 64
  • Well, of course, make the column wider. The ellipsis is a character too, it needs space. This comment has a remarkably high doh factor :) – Hans Passant Oct 28 '15 at 10:02
  • @HansPassant, is there a way to cause DrawString to draw ellipsis instead of one character in this case? Something like Excel displays '##' if the cell width isn't enough. This is our goal. – TecMan Oct 28 '15 at 10:06
  • As I said, ellipsis is a character too, "\u2026", of course you can draw it yourself. – Hans Passant Oct 28 '15 at 10:14

0 Answers0