AnnotationXY _slotLineAnnotation = new AnnotationXY();
_slotLineAnnotation.Text ="TEST";
Question :
How do i text show vertical??
no use "RotateAngle = 90f;"
i want only text vertical to show
how to rotate AnnotationXY Text?
Moderator: Queue Moderators
-
- Posts: 558
- Joined: Mon Mar 14, 2016 9:22 am
Re: how to rotate AnnotationXY Text?
Hello,
If you want each letter to be at new line, just insert '\n' symbol.
For example
The string "RectangleArrow RelativeToTarget" should look like this
All the best.
If you want each letter to be at new line, just insert '\n' symbol.
For example
Code: Select all
annot.Text = "R\ne\nc\nt\na\nn\ng\nl\ne\nA\nr\nr\no\nw\n \nR\ne\nl\na\nt\ni\nv\ne\nT\no\nT\na\nr\ng\ne\nt\n";
-
- Posts: 2
- Joined: Fri Aug 18, 2017 1:45 am
Re: how to rotate AnnotationXY Text?
hi!
Thank you for your reply
i'd like to rotate the text 90 degrees.
Thank you for your reply
i'd like to rotate the text 90 degrees.
-
- Posts: 558
- Joined: Mon Mar 14, 2016 9:22 am
Re: how to rotate AnnotationXY Text?
Hi,
The whole text-box rotation is controlled by Annotation.RotateAngle. If you set to 90 or -90, you should have it orientated vertically (as Y-Axis title).
If it is not working in your app, it must be overwritten somewhere or cancelled by other properties.
You can check how properties affect rendering by running our Demo App's any example with Annotation and then just change Annotation.RotateAngle value (through "Property grid").
Hope this helps.
All the best.
The whole text-box rotation is controlled by Annotation.RotateAngle. If you set to 90 or -90, you should have it orientated vertically (as Y-Axis title).
If it is not working in your app, it must be overwritten somewhere or cancelled by other properties.
You can check how properties affect rendering by running our Demo App's any example with Annotation and then just change Annotation.RotateAngle value (through "Property grid").
Hope this helps.
All the best.