Hello everyone, I am using Visio 2010 I want to recreate the Auto Align & Space button from Visio in my own application with Visio drawing control.
As far as I understood, I should use : Page.LayoutIncremental() function.
I use it like this:
var visAlignAndSpase = VisLayoutIncrementalType.visLayoutIncrAlign|VisLayoutIncrementalType.visLayoutIncrSpace;drawing.Document.Application.ActivePage.LayoutIncremental(visAlignAndSpase, VisLayoutHorzAlignType.visLayoutHorzAlignDefault, VisLayoutVertAlignType.visLayoutVertAlignDefault, 2, 2, VisUnitCodes.visCentemeters);
I tried many possible combinations of the flags, but nothing seems to work.
Does somebody has a solution for this?
Maybe it is a bug in the Visio 2010 control like the AutoResize problem.
Thank you.