Is there any easy way to center a diagram? I believe I may need to use the align feature, but not 100% sure.
I've been using autofit and that centers it however when exporting to an image, even with the bounds set for the entire viewport it doesn't export in the center.
Any ideas on what I can try?
1 Answer, 1 is accepted
0
Tina Stancheva
Telerik team
answered on 04 Oct 2012, 02:02 PM
Hello Michael,
The RadDiagram.ExportToImage method has multiple overloads that allow you to customize the export. One of the overloads allow you to define a portion of the diagram to be exported through a Rect argument:
You can read more about the overloads of the method in our documentation.
I am not sure if I properly understand your case and scenario, but you should be able to use the overload of the method to export only the center portion of your diagram.
Please give this a try and let us know if it helps.