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

Add Geometry of Connector Shape pragmatically

$
0
0

Hi Guys

I create shapes and connectors with C# but I want to set Geometry of connectors (I mean lineTo, MoveTo) by code too.

I tried this code but it raise: This section type does not support named rows

short iRow = (short)(Microsoft.Office.Interop.Visio.VisRowIndices.visRowVertex);
short visTagLineTo = (short)Microsoft.Office.Interop.Visio.VisRowTags.visTagLineTo;
var aa = newShape.get_Section(1);
short sectionId = (short)(newShape.AddSection(
    (short)Microsoft.Office.Interop.Visio.VisSectionIndices.visSectionFirstComponent));
var row = newShape.AddNamedRow(sectionId, "LineTo", visTagLineTo);

Actually I don't know how to get the Geometry1 section.

Thanks you....



Viewing all articles
Browse latest Browse all 2257


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