Visio 2003 Add-in (Get Selected Shape info?)

H

Hemant

Hai .....,
I 'm trying to build a Add-In for Visio 2003. For this Add-In to
work, I need to get the information related to the Selected Shape on the
current Active document i.e page. I have tried the following method. In the
debug mode, it displays that ContainingShape = 1, when i have selected only
one shape in the page. But I'm not able to extract further information (like
the Class Name, Attributes, Member Functions, etc..,) . Any help on this is
really appreciable

Visio.Page currentPage = visioApp.ActivePage;
Visio.Selection selection = currentPage.Application.ActiveWindow.Selection;
Visio.Shape selectedShape = selection.ContainingShape;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top