Hi David,
More information can be found at:
http://helpdotnetvision.nevron.com/UsersGuide_Panels_BorderAndBackground.html
The following code snippet shows how to apply a rounded border to the legend, as well as how to turn off the legend grid:
nChartControl1.Panels.Clear();
NLegend legend = new NLegend();
legend.Mode = LegendMode.Manual;
legend.UseAutomaticSize = true;
for (int i = 0; i < 3; i++)
{
NLegendItemCellData licd = new NLegendItemCellData();
licd.Text = i.ToString();
legend.Data.Items.Add(licd);
}
// optionally turn off border
legend.HorizontalBorderStyle.Width = new NLength(0);
legend.VerticalBorderStyle.Width = new NLength(0);
legend.OuterBottomBorderStyle.Width = new NLength(0);
legend.OuterTopBorderStyle.Width = new NLength(0);
legend.OuterLeftBorderStyle.Width = new NLength(0);
legend.OuterRightBorderStyle.Width = new NLength(0);
// increase padding
legend.Padding = new NMarginsL(10, 10, 10, 10);
// set a border
NStrokeBorderStyle strokeBorder = new NStrokeBorderStyle(BorderShape.RoundedRect);
legend.BorderStyle = strokeBorder;
legend.BackgroundFillStyle = new NColorFillStyle(Color.LightGray);
nChartControl1.Panels.Add(legend);
Hope I helped - let me know if you have any questions or comments.
Best regards,
Bob