public static void Run()
{
// ExStart:FillFormatSmartArtShapeNode
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_SmartArts();
using (Presentation presentation = new Presentation())
{
// Add SmartArt BasicProcess
ISmartArt smart = presentation.Slides[0].Shapes.AddSmartArt(10, 10, 400, 300, SmartArtLayoutType.BasicCycle);
// Obtain the reference of a node by using its Index
ISmartArtNode node = smart.Nodes[1]; // select second root node
// Setting the text of the TextFrame
node.TextFrame.Text = "Second root node";
// ExEnd:FillFormatSmartArtShapeNode
// Saving Presentation
presentation.Save(dataDir + "ChangeText_On_SmartArt_Node_out.pptx", SaveFormat.Pptx);
}
}
}