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
590
Custom labels rotation
posted

Hello,

I am trying to rotate labels which I added to chart in the FillSceneGraph event

the code is :

Point point = new Point((int)axisX.MapMinimum, (int)axisY.MapMinimum + 8);
Text t = new Text(point, "Apr-10", new LabelStyle());

e.SceneGraph.Add(t);

Now I want to rotate this text for example to 45 degree.

I was trying to do something like this but it didn't helped: t.RotationOrigin = new Point(120, 45);

Same question for flipping text.

Thanks

Parents
No Data
Reply
  • 29105
    Verified Answer
    Offline posted

    Hello,

    In addition to the RotationOrigin property, the LabelStyle object exposes the Orientation which would be set to TextOrientation.Custom if you wish to set the degree yourself.

    This has been discussed on our forums before.

    Let me know if you have any questions regarding this matter.

Children