Şekil veya Grafiklerin ThreeDFormat ile Node.js ve C++ kullanarak çalışma
Olası Kullanım Senaryoları
Aspose.Cells for Node.js via C++, Shape.getThreeDFormat() özelliği ve ThreeDFormat sınıfı ile şekil veya grafiklerin 3 boyutlu formatları üzerinde çalışmanıza olanak tanır. ThreeDFormat sınıfı, farklı sonuçlar elde etmek için ayarlanabilen çeşitli özellikleri içerir.
Şekil veya Grafik ThreeDFormat ile Çalışma
Aşağıdaki örnek kod, orijinal excel dosyasını yükler ve ilk çalışma sayfasındaki ilk şekle erişir. Shape.getThreeDFormat() özelliğinin alt özelliklerini ayarlar ve ardından çalışma kitabını çıktı excel dosyasına kaydeder.
const path = require("path");
const AsposeCells = require("aspose.cells.node");
// The path to the documents directory.
const dataDir = path.join(__dirname, "data");
const filePath = path.join(dataDir, "sample.xlsx");
// Load excel file containing a shape
const wb = new AsposeCells.Workbook(filePath);
// Access first worksheet
const ws = wb.getWorksheets().get(0);
// Access first shape
const sh = ws.getShapes().get(0);
// Apply different three dimensional settings
const n3df = sh.getThreeDFormat();
n3df.setContourWidth(17);
n3df.setExtrusionHeight(32);
// Save the output excel file in xlsx format
wb.save(path.join(dataDir, "output_out.xlsx"));