العمل مع تأثير انعكاس الشكل أو المخطط
Contents
[
Hide
]
سيناريوهات الاستخدام الممكنة
يوفر Aspose.Cells ملفالشكل ، الانعكاس الملكية معانعكاس تأثير فئة للعمل مع تأثير انعكاس الشكل أو الرسم البياني. الانعكاس تأثيرتحتوي الفئة على الخصائص التالية التي يمكن تعيينها لتحقيق نتائج مختلفة وفقًا لمتطلبات التطبيق.
العمل مع تأثير انعكاس الشكل أو المخطط
يقوم نموذج التعليمات البرمجية التالي بتحميل ملفملف اكسل المصدر والوصول إلى الشكل الأول في ورقة العمل الافتراضية وتعيين خصائص مختلفة لـالشكل ، الانعكاسclass ثم يحفظ المصنف في ملفملف اكسل الناتج.
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-.NET | |
// The path to the documents directory. | |
string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | |
// Load your source excel file | |
Workbook wb = new Workbook(dataDir + "sample.xlsx"); | |
// Access first worksheet | |
Worksheet ws = wb.Worksheets[0]; | |
// Access first shape | |
Shape sh = ws.Shapes[0]; | |
// Set the reflection effect of the shape, set its Blur, Size, Transparency and Distance properties | |
ReflectionEffect re = sh.Reflection; | |
re.Blur = 30; | |
re.Size = 90; | |
re.Transparency = 0; | |
re.Distance = 80; | |
// Save the workbook in xlsx format | |
wb.Save(dataDir + "output_out.xlsx"); |