Alignment of NLegend item's text


Author
Message
Igor VASILIEV
Igor VASILIEV
Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)
Group: Forum Members
Posts: 4, Visits: 17
Hi guys,

I'm using version RSVision Vol1 2012 for VS2008.
I wanted the text on the legend to be left adjusted. On the picture it looked centered.
My idea was to iterate Data.Items property of NLegend object in RSMain method and set item's ContentAlignment propery = ContentAlignment.BottomLeft.
However I found that Data.Items has 0 items in it but chart and legend are rendered correctly.
Please advise how to achieve the desirable alignment.


https://www.nevron.com/forum/uploads/images/c0624493-ec98-4742-94a3-87e1.png

Reply
Igor VASILIEV
Igor VASILIEV
Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)
Group: Forum Members
Posts: 4, Visits: 17
Thank you for response.
I tried the first approach. I did this in RSMain code:
bar.Legend.ContentAlignment = ContentAlignment.BottomLeft;
Value was definitely assigned but visually alignment was not changed.
I want to try the second one - a legend in manual mode. Can you point me out to the code example or demo project?


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search