Hi,
is it possible to identify if a text in a UltraWinEditor is truncated (no multiline, no text wrapping).
Cheers,
Michael
Michael,
The EditorWithTextUIElement exposes a property to indicate whether all of the text is currently visible:
using Infragistics.Win;
...
bool isTruncated = false;EditorWithTextUIElement element = this.ultraTextEditor1.UIElement.GetDescendant(typeof(EditorWithTextUIElement)) as EditorWithTextUIElement;if (element != null) isTruncated = !element.IsDataFullyVisible;
-Matt
Thanks Matt - that is what I was lokking for
I'm trying to do something similar, but after setting the text and size, I used your code to see if it the data is fully visible and it keeps returning false. I I keep adding to the width, but it still says it's false. Am i doing something wrong?
P.S. I have a text box with WordWrap = True and MultiLine = True.
UPDATE: My textbox has the property "AlwaysInEditMode" set to true because i want the scroll bars to be visible. I think this may be the problem. Is there a way around this?