Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
225
Could not display multiline text in ultraTreeNode.
posted

Hello,

I want to display multiline text in a node of an ultraTree control. The text of the ultraTreeNode doesn't contain white spaces (It's composed of a one word). I set the property "ultraTree1.Override.Multiline" to true. But, I always have the horizontal scroll bar.  This is my code "

appearance1.BorderColor = System.Drawing.Color.White;
this.ultraTree1.Appearance = appearance1;
this.ultraTree1.BorderStyle = Infragistics.Win.UIElementBorderStyle.None;
this.ultraTree1.Dock = System.Windows.Forms.DockStyle.Fill;
this.ultraTree1.FullRowSelect = true;
this.ultraTree1.HideSelection = false;
this.ultraTree1.Location = new System.Drawing.Point(0, 0);
this.ultraTree1.Name = "_mediaTree";
_override1.ItemHeight = 30;
_override1.MaxLabelHeight = 30;
_override1.Multiline = Infragistics.Win.DefaultableBoolean.True;
_override1.SelectionType = Infragistics.Win.UltraWinTree.SelectType.Extended;
_override1.LabelEdit = DefaultableBoolean.False;
this.ultraTree1.Override = _override1;
this.ultraTree1.ShowLines = false;
this.ultraTree1.ShowRootLines = false;
this.ultraTree1.Size = new System.Drawing.Size(200, 370);
this.ultraTree1.ViewStyle = ViewStyle.Standard;"

Is there something wrong in my code? 

Thank you in advance