Aspose::Words::Drawing::Shape::get_HasSmartArt method
Shape::get_HasSmartArt method
Returns true if this Shape has a SmartArt object.
bool Aspose::Words::Drawing::Shape::get_HasSmartArt()
Examples
Shows how to count the number of shapes in a document with SmartArt objects.
auto doc = MakeObject<Document>(MyDir + u"SmartArt.docx");
int numberOfSmartArtShapes = doc->GetChildNodes(NodeType::Shape, true)
->LINQ_Cast<SharedPtr<Shape>>()
->LINQ_Count([](SharedPtr<Shape> shape) { return shape->get_HasSmartArt(); });
ASSERT_EQ(2, numberOfSmartArtShapes);
See Also
- Class Shape
- Namespace Aspose::Words::Drawing
- Library Aspose.Words for C++