Nevron Open Vision Documentation
Header and Footer

The legend header and footer of the legend can be any NWidget derived class and are exposed from the Header and Footer properties of the NLegend object. The following code shows how to assign a legend header that is a simple label:

Title Text
Copy Code

NLabel legendHeader = new NLabel("Legend Header");
legendHeader.Margins =
new NMargins(3);
legendHeader.Font =
new NFont("Arimo", 12, ENFontStyle.Bold);
legendHeader.TextAlignment =
ENContentAlignment.MiddleCenter;
legend.Header = legendHeader;

NLabel legendFooter = new NLabel("Legend Footer");
legendFooter.Margins =
new NMargins(3);
legendFooter.Font =
new NFont("Arimo", 10, ENFontStyle.Bold);
legendFooter.TextAlignment =
ENContentAlignment.MiddleCenter;
legend.Footer = legendFooter;

 

Send Feedback