العمل مع تأثير التوهج للشكل أو الرسم البياني
Contents
[
Hide
]
سيناريوهات الاستخدام الممكنة
يوفر Aspose.Cells خاصية Shape.Glow للعمل مع تأثير التوهج للشكل أو المخطط. يحتوي على الخصائص الفرعية التالية التي يمكنك تعيينها لتحقيق نتائج مختلفة وفقًا لمتطلباتك.
- تأثير التوهج
- تأثير الوهج والشفافية
تُظهر لقطة الشاشة التالية واجهة Microsoft Excel لتعيين تأثير التوهج للشكل.
العمل مع تأثير التوهج للشكل أو الرسم البياني
يقوم نموذج التعليمات البرمجية التالي بتحميل ملفملف اكسل المصدروالوصول إلى الشكل الأول في ورقة العمل الأولى وتعيين الخصائص الفرعية للخاصية Shape.Glow ثم حفظ المصنف فيملف اكسل الناتج.
عينة من الرموز
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(WorkingWithGlowEffect.class) + "articles/"; | |
// Load your source excel file | |
Workbook wb = new Workbook(dataDir + "WorkingWithGlowEffect_in.xlsx"); | |
// Access first worksheet | |
Worksheet ws = wb.getWorksheets().get(0); | |
// Access first shape | |
Shape sh = ws.getShapes().get(0); | |
// Set the glow effect of the shape | |
// Set its Size and Transparency properties | |
GlowEffect ge = sh.getGlow(); | |
ge.setSize(30); | |
ge.setTransparency(0.4); | |
// Save the workbook in xlsx format | |
wb.save(dataDir + "WorkingWithGlowEffect_out.xlsx"); |