Şekil veya Grafik ThreeDFormat ile Çalışma

Olası Kullanım Senaryoları

Aspose.Cells for Python via .NET, Shape.three_d_format özelliği ve ThreeDFormat sınıfını sağlayarak şekil veya grafiklerin 3D formatıyla çalışmayı destekler. ThreeDFormat sınıfı, uygulama gereksinimlerine göre 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, kaynak Excel dosyasını yükler ve ilk çalışma sayfasındaki ilk şekle erişir ve Shape.three_d_format özelliğinin alt özelliklerini ayarlar ve ardından çalışma kitabını çıktı Excel dosyasına kaydeder.

from aspose.cells import Workbook
# For complete examples and data files, please go to https:# github.com/aspose-cells/Aspose.Cells-for-.NET
# The path to the documents directory.
dataDir = RunExamples.GetDataDir(".")
# Load excel file containing a shape
wb = Workbook(dataDir + "sample.xlsx")
# Access first worksheet
ws = wb.worksheets[0]
# Access first shape
sh = ws.shapes[0]
# Apply different three dimensional settings
n3df = sh.three_d_format
n3df.contour_width = 17.0
n3df.extrusion_height = 32.0
# Save the output excel file in xlsx format
wb.save(dataDir + "output_out.xlsx")