public static void Run()
{
// ExStart:OrganizeChartLayoutType
// 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.OrganizationChart);
// Get or Set the organization chart type
smart.Nodes[0].OrganizationChartLayout = OrganizationChartLayoutType.LeftHanging;
// ExEnd:OrganizeChartLayoutType
// Saving Presentation
presentation.Save(dataDir + "OrganizeChartLayoutType_out.pptx", SaveFormat.Pptx);
}
}
}