public static void Run()
{
// ExStart:CheckSmartArtHiddenProperty
// 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.RadialCycle);
// Add node on SmartArt
ISmartArtNode node = smart.AllNodes.AddNode();
// Check isHidden property
bool hidden = node.IsHidden; // Returns true
if (hidden)
{
// Do some actions or notifications
}
// ExEnd:CheckSmartArtHiddenProperty
// Saving Presentation
presentation.Save(dataDir + "CheckSmartArtHiddenProperty_out.pptx", SaveFormat.Pptx);
}
}
}