Skip to content

Commit 331fc09

Browse files
Update Program.cs
1 parent 69f12df commit 331fc09

File tree

1 file changed

+5
-2
lines changed
  • Slides/Iterate-slide-elements/.NET/Iterate-slide-elements

1 file changed

+5
-2
lines changed

Slides/Iterate-slide-elements/.NET/Iterate-slide-elements/Program.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,11 @@ private static void ModifySlideElements(IShape shape, IPresentation presentation
122122
{
123123
// Modify SmartArt content
124124
ISmartArt smartArt = shape as ISmartArt;
125-
ISmartArtNode smartArtNode = smartArt.Nodes[0];
126-
smartArtNode.TextBody.Text = "Requirement";
125+
//Traverse through all nodes inside SmartArt
126+
foreach (ISmartArtNode node in smartArt.Nodes)
127+
{
128+
ModifyTextPart(node.TextBody);
129+
}
127130
break;
128131
}
129132

0 commit comments

Comments
 (0)