I have the following code:
var activeWindow = Application.ActiveWindow;
foreach (Visio.Shape shapeItem in activeWindow.Selection)
{
System.Windows.Forms.MessageBox.Show(shapeItem.Name);
if(shapeItem.SectionExists(visSectionConnectionPts, false) = false)
{
}
}
I am iterating through a collection of shapes and outputting the name of each shape. To extend this - I am trying to see if (for each selected shape) the section visSectionConnectionPts exists - as I am trying to add connection points to the currently selected shape. I get two errors:
- Non-invocable member 'IVShape.SectionExists[Short,Short]' cannot be used like a method.
- The name 'visSectionConnectionPts' does not exist in the current context.
How can I proceed with the above?