العمل مع تأثير انعكاس الشكل أو المخطط
Contents
[
Hide
]
سيناريوهات الاستخدام الممكنة
يوفر Aspose.Cells ملفالشكل ، الانعكاس ، التأثيرخاصية للعمل مع تأثير انعكاس الشكل أو المخطط. يحتوي على الخصائص الفرعية التالية التي يمكنك تعيينها لتحقيق نتائج مختلفة وفقًا لمتطلباتك.
- انعكاس تأثير
- انعكاس تأثير الاتجاه
- انعكاس تأثير المسافة
- انعكاس تأثير. تتلاشى الاتجاه
- انعكاس تأثير
- انعكاس تأثير الحجم
- انعكاس تأثير ، شفافية
- انعكاس تأثير. النوع
تُظهر لقطة الشاشة التالية واجهة Microsoft Excel لتعيين ملفتأثير الانعكاسمن الشكل.
العمل مع تأثير انعكاس الشكل أو المخطط
يقوم نموذج التعليمات البرمجية التالي بتحميل ملفملف اكسل المصدر والوصول إلى الشكل الأول في ورقة العمل الأولى وتعيين الخصائص الفرعية لـالشكل ، الانعكاس ، التأثيرالخاصية ثم يحفظ المصنف في ملفملف اكسل الناتج.
عينة من الرموز
This file contains hidden or 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-Java | |
// The path to the documents directory. | |
String dataDir = Utils.getSharedDataDir(WorkingWithReflectionEffect.class) + "articles/"; | |
// Load your source excel file | |
Workbook wb = new Workbook(dataDir + "WorkingWithReflectionEffect_in.xlsx"); | |
// Access first worksheet | |
Worksheet ws = wb.getWorksheets().get(0); | |
// Access first shape | |
Shape sh = ws.getShapes().get(0); | |
// Set the reflection effect of the shape | |
// Set its Blur, Size, Transparency and Distance properties | |
ReflectionEffect re = sh.getReflection(); | |
re.setBlur(30); | |
re.setSize(90); | |
re.setTransparency(0); | |
re.setDistance(80); | |
// Save the workbook in xlsx format | |
wb.save(dataDir + "WorkingWithReflectionEffect_out.xlsx"); |