Как мы можем извлечь начальную и конечную точки соединителя между двумя фигурами в visio.
using Visio = Microsoft.Office.Interop.Visio
class Program
{
Application visApp = new Application();
Document visDoc = visApp.Documents.Open(filePath);
// Get the first page in the sample drawing.
page = visDoc.Pages[1];
// Look at each shape in the collection.
foreach (Shape shape in page.shapes)
{
if (shp.OneD == -1)
{
//Need clues- How to proceed ?
}
}
}
На изображении ниже я бы хотел извлечь 'XYZ' и 'PQR'.
