Akıllı Sanatı Grup Şekline Dönüştürün
Contents
[
Hide
]
Olası Kullanım Senaryoları
Smart Art Shape’i kullanarak Grup Shape’e dönüştürebilirsiniz.Shape.getResultOfSmartArt() yöntem. Akıllı sanat şeklini bir grup şekli gibi işlemenizi sağlayacaktır. Sonuç olarak, grup şeklinin ayrı parçalarına veya şekillerine erişebileceksiniz.
Akıllı Sanatı Grup Şekline Dönüştürün
Aşağıdaki örnek kod,örnek excel dosyasıbu ekran görüntüsünde gösterildiği gibi bir akıllı sanat şekli içeren. Daha sonra akıllı sanat şeklini grup şekline dönüştürür veShape.IsGroupEmlak. Lütfen aşağıda verilen örnek kodun konsol çıktısına bakın.
Basit kod
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_GetResultOfSmartArt.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()); | |
//Determine if shape is group shape | |
System.out.println("Is Group Shape: " + sh.isGroup()); | |
//Convert smart art shape into group shape | |
System.out.println("Is Group Shape: " + sh.getResultOfSmartArt().isGroup()); |
Konsol Çıkışı
Is Smart Art Shape: true
Is Group Shape: false
Is Group Shape: true