TKE Posted November 1, 2007 Report Share Posted November 1, 2007 Can I set different styles on the chart border and the legendbox border? Thanks! Link to comment Share on other sites More sharing options...
maximop Posted November 1, 2007 Report Share Posted November 1, 2007 No. The border property of the chart is used when setting default and image borders for the control. In order to assign a standard or image border, you must create a new SimpleBorder or ImageBorder object. The border property of the LegendBox takes on a value from the DockBorder enumerator which is a DockableBar object. These values can be External, Internal, or None. Link to comment Share on other sites More sharing options...
TKE Posted November 1, 2007 Author Report Share Posted November 1, 2007 Is that possible to set the chart border to None and set the LegendBox border's style to "1px solid black"? I want to remove the chart border but keep the LegendBox border there. The problem is when I set the chart border to None, the LegendBox border disappears too. Here is my current code: Dim border As SimpleBorder = New SimpleBorderborder.Type = SimpleBorderType.NoneChart1.Border = borderChart1.LegendBox.Border = DockBorder.Internal Thanks for the help! Link to comment Share on other sites More sharing options...
maximop Posted November 2, 2007 Report Share Posted November 2, 2007 This is by design. The LegendBox uses the same border as the Chart Control. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.