ShapeHasSmartArt Property
Returns true if this Shape has a SmartArt object.

Namespace: Aspose.Words.Drawing
Assembly: Aspose.Words (in Aspose.Words.dll) Version: 19.12
Syntax
public bool HasSmartArt { get; }

Property Value

Type: Boolean
Examples
Shows how to detect that Shape has a SmartArt object.
Document doc = new Document(MyDir + "Shape.SmartArt.docx");

int count = 0;
foreach (Shape shape in doc.GetChildNodes(NodeType.Shape, true))
{
    if (shape.HasSmartArt)
        count++;
}

Console.WriteLine("The document has {0} shapes with SmartArt.", count);
See Also