MSDN Archive Home
Help and FAQs
Samples Environment for Microsoft Chart Controls
All Resource Updates
Create New Discussion
How to control legend text alignment C#
Oct 15 2012 at 5:57 PM
How does one set the alignment of text within a chart legend object? I've tried using myChartName.Legends
.Alignment = stringAlignment.Near with no effect. I've also tried to create custom items, also resulting in no effect. Text is ALWAYS centered (along with the series marker) in the legend "box". The only text I have been able to align is the title, but I don't need titles in my application.
So, what gives? Why can't I access the text alignment properties of the legend object?
Sign in to post message or set email notifications
Manage Your Profile
MSDN Flash Newsletter
© 2008 Microsoft Corporation. All rights reserved.