العمل مع ثلاثة الأبعاد من الشكل أو الرسم البياني
سيناريوهات الاستخدام المحتملة
يوفر Aspose.Cells for Python via .NET الخاص بك خاصية Shape.three_d_format إلى جانب فئة ThreeDFormat للعمل مع تنسيق الشكل الثلاثي الأبعاد أو المخطط. تحتوي فئة ThreeDFormat على خصائص مختلفة يمكن تعيينها لتحقيق نتائج مختلفة حسب متطلبات التطبيق.
العمل مع ثلاثة الأبعاد من الشكل أو الرسم البياني
الكود النموذجي التالي يقوم بتحميل ملف إكسل المصدر(ملف إكسل المصدر) ويصل إلى الشكل الأول في ورقة العمل الأولى ويعين خصائص فرعية لخاصية Shape.three_d_format ثم يحفظ المصنف في ملف إكسل الإخراج.
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") |