我使用 C# 创建形状和连接器,但我也想通过代码设置连接器的几何形状(我的意思是 lineTo、MoveTo)。
我尝试了这段代码,但它引发了: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);
其实我不知道如何获得该Geometry1
部分。