Profile Picture

Changing the zoom level of NLegend control during export

Posted By Irina 8 Years Ago

Changing the zoom level of NLegend control during export

Author
Message
Irina
Question Posted 8 Years Ago
View Quick Profile
Junior Member

Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)

Group: Forum Members
Last Active: 7 Years Ago
Posts: 23, Visits: 306
Hi,
When exporting a chart control to an image, I can specify the desired size of the image. If this size is less than the size of the control, the chart will be zoomed out, but the NLegend control will have the same size. Is it possible to change the zoom level of the NLegend control based on the specified dimensions during export?
Thank you

Nevron Support
This post has been flagged as an answer
Posted 8 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)Supreme Being (4,329 reputation)

Group: Forum Members
Last Active: Last Year
Posts: 3,039, Visits: 3,746
Hi Irina,
You can switch the legend bounds mode to Fit in which which case it will resize in order to fill it's width or height of the panel associated with it - for example:
  NLegend legend = nChartControl1.Legends[0];
   legend.BoundsMode = Nevron.GraphicsCore.BoundsMode.Fit;
   legend.UseAutomaticSize = false;
   legend.Size = new Nevron.GraphicsCore.NSizeL(new NLength(20, NRelativeUnit.ParentPercentage), new NLength(20, NRelativeUnit.ParentPercentage));



Best Regards,
Nevron Support Team



Irina
Posted 8 Years Ago
View Quick Profile
Junior Member

Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)

Group: Forum Members
Last Active: 7 Years Ago
Posts: 23, Visits: 306
Thank you!



Similar Topics


Reading This Topic