shape = diagram.Pages.Shapes.GetShape(shapeId);
foreach (Aspose.Diagram.Shape subshape in shape.Shapes)
Thanks for your answer!!
If you do it with a foreach, all the forms will have the text, but you have given me an idea and I did it as follows:
If (shape.Shapes.Count> 0)
Shape.Shapes .Text.Value.SetWholeText ("My Text");
Other think... when I Try to edit this text in the visio file, I can't.