I'm using C#.net 2008 and Visio 2007.
in my forms application I use an axDrawingControl to render UML static structures. I use the stencil UMLSTR_M.vss and dropped a shape
newShape = currentPage.Drop(currentStencil.Masters["Class"], 3.00, 10.00);
I can change the name of the class
foreach (Visio.Shape tempInnerShape in newShape.Shapes)
{
if (tempInnerShape.Name == "Name")
{
tempInnerShape.Text = "Student";
}
if (tempInnerShape.Name == "Attributes")
{
//tempInnerShape.Text = "temp Operations" //ERROR
}
}
But I cant set text for attributes. Can read all attributes and Operations from an already drawn class but can not set.
Please help me to do the task.
Thank you
Replies
Know the answer? Post it — somebody with the same question will find it here.