H
ha1o
Hi. I have a little question this time, but I can't solve it.
here is the code I use when I want to create a new shape with masters from
others files.
"Document stencil =
(Document)((Documents)drawingControl.Window.Application.Documents)["Stencil.vss"];
Master masterObj = stencil.Masters.get_ItemU(GraphShapeID.ToString());
Page targetPage = (Page)drawingControl.Window.PageAsObj;
Shape shapeObj = targetPage.Drop(masterObj, this.shapePos.initialLocationX,
this.shapePos.initialLocationY);"
I have different stencil files. I am using the Visio object(drawingControl)
"ShapeAdded" event. this method has a parameter pointing at the new shape.
"private void drawingControl_ShapeAdded(object sender,
AxMicrosoft.Office.Interop.VisOcx.EVisOcx_ShapeAddedEvent e)
{
e.shape.ToString();
}"
my problem is that I need to know which stencil file the user used to obtain
the new shape and I can't find the file which the original master belongs to
from the shape variable in the event.
I am hoping you can point me at the right direction.
thanks for your time.
here is the code I use when I want to create a new shape with masters from
others files.
"Document stencil =
(Document)((Documents)drawingControl.Window.Application.Documents)["Stencil.vss"];
Master masterObj = stencil.Masters.get_ItemU(GraphShapeID.ToString());
Page targetPage = (Page)drawingControl.Window.PageAsObj;
Shape shapeObj = targetPage.Drop(masterObj, this.shapePos.initialLocationX,
this.shapePos.initialLocationY);"
I have different stencil files. I am using the Visio object(drawingControl)
"ShapeAdded" event. this method has a parameter pointing at the new shape.
"private void drawingControl_ShapeAdded(object sender,
AxMicrosoft.Office.Interop.VisOcx.EVisOcx_ShapeAddedEvent e)
{
e.shape.ToString();
}"
my problem is that I need to know which stencil file the user used to obtain
the new shape and I can't find the file which the original master belongs to
from the shape variable in the event.
I am hoping you can point me at the right direction.
thanks for your time.