Quantcast
Channel: General Office Development forum
Viewing all articles
Browse latest Browse all 2257

Auto align and space in Visio drawing control C#

$
0
0

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.


Viewing all articles
Browse latest Browse all 2257

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>