User (Legacy) Posted January 18, 2006 Report Share Posted January 18, 2006 Hi Francisco, Thank you for helping me a lot. I am configuring items in my legendbox using the reference: ms-help://SFX.ChartFX.70/chartfx7_net_win_api/LegendBox_ItemAttributes.htm I supposed to follow this code: Dim lia As LegendItemAttributes = New LegendItemAttributes chart1.LegendBox.ItemAttributes(CType(chart1.Series(1),ILegendBoxItem)) = lia But since ItemAttributes only accept ILegendBoxItemCollection and NOT ILegenBoxItem, so I have to convert it to ILegendBoxItemCollection. When I did this, ofcourse I'll get an error message "Cannot convert seriesAttributes to ILegendBoxItemCollection". Why does the help is different from the DLL? Need help. Thank you, Raymond Dazo Interprise Solutions Team Link to comment Share on other sites More sharing options...
Software FX Posted January 19, 2006 Report Share Posted January 19, 2006 Change it to: chart1.LegendBox.ItemAttributes(chart1.Series,1) = Notice that there are two indexers, one with a collection and one with a collection plus an index. -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
User (Legacy) Posted January 20, 2006 Author Report Share Posted January 20, 2006 Hi Francisco, I know this is too simple, but I can't reverse the order of items in my LegendBox. Attached is a sapmle project on how I tried to do this. Is there something I missed? Need help Thank you, Raymond Dazo Interprise Solutions Team Link to comment Share on other sites More sharing options...
Software FX Posted January 23, 2006 Report Share Posted January 23, 2006 chart1.LegendBox.ItemAttributes[chart1.Series].Inverted = true; -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.