En Dissanayake

En Dissanayake

  • NA
  • 1
  • 7.5k

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

Oct 14 2010 5:41 AM
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