I have used that before, but in this case I will have text of different sizes even on the same line. I suppose I can get the width of each portion of text and add them up to see which line is the longest.
I played with this for awhile as I recall it was overly complicated to get what I want and very slow. Also, I believe I couldn't get it to drag and drop either, But I have also found that a Pane set as a TextFlow will not drag and drop. I had to put it on another pane.
I am adding 1 to ~100 of these to a listview and there can be 1 to 20 or 30 listviews. Each item needs to be able to be dragged and dropped to the location of any of the others.