Determine if Shape is Smart Art Shape

Possible Usage Scenarios

SmartArt shapes are special shapes in Microsoft Excel that allow you to create complex diagrams automatically. You can determine whether the shape is a SmartArt shape or a normal shape using the Shape.IsSmartArt property.

Determine if Shape is Smart Art Shape

The following sample code loads the sample Excel file containing a SmartArt shape as shown in this screenshot. It then prints the value of the Shape.IsSmartArt property of the first shape. Please see the console output of the sample code given below.

todo:image_alt_text

Sample Code

Console Output

Is Smart Art Shape: True