1
도형에 그릴 간단한 코드가 있습니다.C#을 통해 Visio 2010에서 컨테이너를 추가하는 방법은 무엇입니까?
Visio.Shape dropShape = ActivePage.Drop(GetMaster(@"Circle"), x, y);
Visio.Shape dropShape2 = ActivePage.Drop(GetMaster(@"Circle"), x + 3, y);
는 그리고 나는 이것이 내가 인터넷에서이 샘플을 찾았지만 작동하지 않았다
VisApp.ActiveWindow.Select(dropShape, (short)Visio.VisSelectArgs.visSelect);
VisApp.ActiveWindow.Select(dropShape2, (short)Visio.VisSelectArgs.visSelect);
object vsoSelection = VisApp.ActiveWindow.Selection;
Visio.Shape containerMaster = ActivePage.Drop(GetMaster(@"Square"), x -3, y-3);
Visio.Shape container = ActivePage.DropContainer(containerMaster, vsoSelection);
을 모양에 대한 컨테이너를 추가 할 수 whant. 어떤 생각이있어?