0
Answer

Set properties in Visio static structure shape - C#.net 2008

Photo of En Dissanayake

En Dissanayake

14y
7.6k
1
Dear all,
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 

 Collapse
newShape = currentPage.Drop(currentStencil.Masters["Class"], 3.00, 10.00);

I can change the name of the class
 Collapse
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

Answers (0)