HasSmartArt
Shape.HasSmartArt property
ReturnerarSann
om det härShape
har ett SmartArt-objekt.
public bool HasSmartArt { get; }
Exempel
Visar hur man räknar antalet former i ett dokument med SmartArt-objekt.
Document doc = new Document(MyDir + "SmartArt.docx");
int numberOfSmartArtShapes = doc.GetChildNodes(NodeType.Shape, true).Cast<Shape>().Count(shape => shape.HasSmartArt);
Assert.AreEqual(2, numberOfSmartArtShapes);
Se även
- class Shape
- namnutrymme Aspose.Words.Drawing
- hopsättning Aspose.Words