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


Author
Message
Charles Pevsner
Charles Pevsner
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
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 (217 views, 5.00 KB)
LineTrimStyle - Char.png (222 views, 7.00 KB)
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search