Choyee Posted September 9, 2010 Report Share Posted September 9, 2010 Hi, I'm charting with several series and a couple of AxisSections for the X axis. I don't want to display these AxisSections' information in the LegendBox, so I tried this: chart1.LegendBox.ItemAttributes[chart1.AxisX.Sections].Visible = false; But, it didn't work. It just caused a buil error. I assume the problem is, unlike the API Reference says, this LegenItemAttributesCollection of the LegendBox requies 'ILegendBoxItemCollection' not 'ILegendItemCollection' for the collection parameter. I tried the exact same statement in a debug mode and it worked then, which makes me more confused. Am I using this wrong or is this because I'm using a wrong build version, 7.0.3754.185555? Thanks in advance. Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.