Profile Picture

How to have long text truncate gracefully with ellipsis (...)?

Posted By C17 12 Years Ago

How to have long text truncate gracefully with ellipsis (...)?

Author
Message
C17
Posted 12 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 2, Visits: 1
Hi all,

My diagram is using NTableShapes. For most of the cells, I cannot predict how long it will be, it's dependent on the customer's data. If it's too long to fit in the cell, then I'd like it to be automatically terminated with a "..." (as can readily be done with a WinForms label just by setting a property). (The full text will be available as a tooltip.)

I was hoping that the LineTrimStyle of the textstyle would do this, but it doesn't. (It's not actually clear to me what it's supposed to do.)

Right now, I have two unacceptable alternatives (see attachments):
1) If LineTrimStyle = Word or WordOnly, the text crowds the cell and is unreadable
2) If LineTrimStyle = Char, the text overflows the cell onto the diagram background

I'm sure I'm not the first one to have this need, so what's the standard solution others have used?

Thanks!

C17

Attachments
LineTrimStyle - Word.png (197 views, 5.00 KB)
LineTrimStyle - Char.png (201 views, 7.00 KB)


Similar Topics


Reading This Topic