Bestimmen Sie, ob Shape Smart Art Shape ist
Contents
[
Hide
]
Mögliche Nutzungsszenarien
Smart Art Shapes sind spezielle Formen in Microsoft Excel, mit denen Sie komplexe Diagramme automatisch erstellen können. Mit können Sie feststellen, ob es sich bei der Form um eine intelligente Kunstform oder eine normale Form handeltShape.IsSmartArtEigentum.
Bestimmen Sie, ob Shape Smart Art Shape ist
Der folgende Beispielcode lädt dieBeispiel-Excel-Dateimit einer intelligenten Kunstform, wie in diesem Screenshot gezeigt. Es druckt dann den Wert vonShape.IsSmartArtEigenschaft der ersten Form. Bitte sehen Sie sich die Konsolenausgabe des unten angegebenen Beispielcodes an.
Beispielcode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Java | |
//Load the sample smart art shape - Excel file | |
Workbook wb = new Workbook("sampleSmartArtShape.xlsx"); | |
//Access first worksheet | |
Worksheet ws = wb.getWorksheets().get(0); | |
//Access first shape | |
Shape sh = ws.getShapes().get(0); | |
//Determine if shape is smart art | |
System.out.println("Is Smart Art Shape: " + sh.isSmartArt()); |
Konsolenausgabe
Is Smart Art Shape: true