How to get the shape associated with a GraphicItem

S

Sloshy

We are planning on adding GraphicItems on the fly to a Visio.Master object
whose type is a DataGraphic. When we are looping throught the GraphicItems
collection, we need to access the shapesheet for the shape so we can
read/write custom properties on it.

Is there a way to get the shape the GraphicItem is mapped to?

Thanks!

Josh
 
A

AlEdlund

Josh,

I'm still a little confused (old guy, normal). In any case it sounds like
you might want to take advantage of chapter 7 in David Parkers book on
"visualizing information wiht ms office v2007".
al
 
P

Paul Herber

We are planning on adding GraphicItems on the fly to a Visio.Master object
whose type is a DataGraphic. When we are looping throught the GraphicItems
collection, we need to access the shapesheet for the shape so we can
read/write custom properties on it.

Is there a way to get the shape the GraphicItem is mapped to?

Sounds to me like you are doing things the wrong way round.
If you are looping through the graphics then you must already have a
reference to the shape object.
Anyway, the shapesheet is just a UI window to assist the user to
interactively change cells, you don't want to access it
programatically.
You want to access the shape's cells, when you have the shape's object
at, say, shpObj, then access the shape's cells via the shpObj.Cells
and shpObj.CellSrc methods.
 

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