Change the shape's Icone ?

F

Ferro Francesco

Hello,

I would like to know how i can change the icon of a Shape (already
droped) ?

I things like this:

//Drop a shape
masterInStencil = stencil.Masters.get_ItemU(masterNameU);
droppedShape = visioApplication.ActivePage.Drop(masterInStencil, 5,
5);

//changing icon
droppedShape.setShapeImage?

Thank's
 
P

Paul Herber

Hello,

I would like to know how i can change the icon of a Shape (already
droped) ?

I things like this:

//Drop a shape
masterInStencil = stencil.Masters.get_ItemU(masterNameU);
droppedShape = visioApplication.ActivePage.Drop(masterInStencil, 5,
5);

//changing icon
droppedShape.setShapeImage?

Shapes don't have icons or images, the shape is the shape, usually as
defined by the one or more geometry sections, sub-shapes within a
grouped shapes and their various attributes.

Is this some condition in your code where you have decided that the
master that you dropped was the wrong one and you want to use a
different one instead?
 
F

Ferro Francesco

What i want to do is:

Drop a shape on postion X and Y.

I receive some events and i must change this shape to an other one.

I know I can
- detect the shape
- retrieve his X and Y pos
- delete it
- Re drop a shape ..

But it's to Heavy...
 
P

Paul Herber

What i want to do is:

Drop a shape on postion X and Y.

I receive some events and i must change this shape to an other one.

I know I can
- detect the shape
- retrieve his X and Y pos
- delete it
- Re drop a shape ..

that's the way to do it.
 

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