ShapeHasSmartArt Property |
Returns true if this Shape has a SmartArt object.
Namespace:
Aspose.Words.Drawing
Assembly:
Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntaxpublic bool HasSmartArt { get; }Public ReadOnly Property HasSmartArt As Boolean
Get
public:
property bool HasSmartArt {
bool get ();
}member HasSmartArt : bool with get
Property Value
Type:
Boolean
ExamplesShows how to detect that Shape has a SmartArt object.
Document doc = new Document(MyDir + "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