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
430
Infragistics.UltraChart.Core.Primitives.Text wrap and boundaries
posted

I'm adding dinamically Infragistics.UltraChart.Core.Primitives.Text primitives to a UltraWebChart to replace default series labels using this code.

Point ptextCompName = new Point(X, Y);
Infragistics.UltraChart.Core.Primitives.Text textCompName = new Text(ptextCompName, thetext);
textCompName.labelStyle.Font = new Font("Open Sans", 10);
textCompName.labelStyle.FontColor = Color.FromArgb(62, 62, 62);
newsymbols.Add(textCompName);

The problem is that I cant set the boundaries of the text 'box container' to fit exactly the space I want to fill. The width of the text seems to be automatically calculated and is wrapped. Changing the size of the font changes algo the width of the final text, as you can see at the attachment. My goal is to fit the text at the space marked with a red box in the last example of the attachment.

I have tried changing the properties of the labaleStyle, setting all the combinations with wrap=false clip=true... but nothing seems to work

Any help would be geratly appreciated