Şekil veya Grafik ThreeDFormat ile Çalışma

Olası Kullanım Senaryoları

Aspose.Cells, şekil veya grafik 3-B formatı ile çalışmak için Shape.ThreeDFormat özelliğini sağlar. İhtiyaçlarınıza göre farklı sonuçlar elde etmek için farklı alt özellikleri içerir.

Aşağıdaki ekran görüntüsü, Şekil 3-B Formatı ayarını yapmak için Microsoft Excel arayüzünü göstermektedir.

todo:image_alt_text

Şekil veya Grafik ThreeDFormat ile Çalışma

Aşağıdaki örnek kod, kaynak excel dosyasını yükler ve ilk çalışma sayfasındaki ilk şeklin alt özelliklerini Shape.ThreeDFormat özelliğinin ayarlar ve ardından workbook’u çıkış excel dosyasına kaydeder.

Örnek Kod

// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Java
// The path to the documents directory.
String dataDir = Utils.getSharedDataDir(WorkingWithThreeDFormat.class) + "articles/";
//Load excel file containing a shape
Workbook wb = new Workbook(dataDir + "WorkingWithThreeDFormat_in.xlsx");
//Access first worksheet
Worksheet ws = wb.getWorksheets().get(0);
//Access first shape
Shape sh = ws.getShapes().get(0);
//Apply different three dimensional settings
ThreeDFormat n3df = sh.getThreeDFormat();
n3df.setContourWidth(17);
n3df.setExtrusionHeight(32);
n3df.setTopBevelType(BevelType.HARD_EDGE);
n3df.setTopBevelWidth (30);
n3df.setTopBevelHeight(30);
//Save the output excel file in xlsx format
wb.save(dataDir + "WorkingWithThreeDFormat_out.xlsx");