Canvas and Alignment

Posted by: cjhavens on 4 August 2017, 3:19 pm EST

  • Posted 4 August 2017, 3:19 pm EST

    I am using the Canvas.Drawtext method to draw text on a report at a 180 degree angle (upside down). It draws it correctly but I would like to align the text differently but the Canvas.Alignment property will not change the alignment no matter what I change it to.

  • Replied 4 August 2017, 3:19 pm EST

    Hello,

    The alignment property of the canvas object is used to sets or return the horizontal alignment of the text drawn using
    DrawText method.For example you have drawn text within a rectangle and now you want to align the text in terms of the rectangle,in this case you can use the alignment property. Please refer to this link in this regard. Please let me know if your requirement is otherwise.

    Regards,
    Prantik
  • Replied 4 August 2017, 3:19 pm EST

    Thank you for your response, but what I was trying to say is that when I rotate the canvas object and use the drawtext method, the alignment property does not work...



    Any other suggestions?
  • Replied 4 August 2017, 3:19 pm EST

    Hello,

    Can you attach the code that you are using to rotate the canvas object and use the drawtext method and alignment property.

    Regards,
    Prantik
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels