اقرأ لون تأثير توهج الشكل
Contents
[
Hide
]
سيناريوهات الاستخدام الممكنة
إذا كنت تريد قراءة لون تأثير التوهج لأي شكل ، فيرجى استخدامشكل ، تدفق ، لونخاصية. سيساعدك في العثور على الخصائص المختلفة المتعلقة بلون تأثير التوهج المطبق في الشكل.
اقرأ لون تأثير التوهج للشكل
يرجى الاطلاع على نموذج التعليمات البرمجية التالي وملفملف اكسل المصدروإخراج وحدة التحكم للرجوع اليها. توضح لقطة الشاشة التالية تأثير التوهج للشكل داخل ملف Excel المصدر عند عرضها في Microsoft Excel.
Java كود لقراءة لون تأثير توهج الشكل
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(ReadColorGlowEffect.class) + "DrawingObjects/"; | |
//Read the source excel file | |
Workbook wb = new Workbook(dataDir + "sourceGlowEffectColor.xlsx"); | |
//Access first worksheet | |
Worksheet ws = wb.getWorksheets().get(0); | |
//Access the shape | |
Shape sh = ws.getShapes().get(0); | |
//Read the glow effect color and its various properties | |
GlowEffect ge = sh.getGlow(); | |
CellsColor clr = ge.getColor(); | |
System.out.println("Color: " + clr.getColor()); | |
System.out.println("ColorIndex: " + clr.getColorIndex()); | |
System.out.println("IsShapeColor: " + clr.isShapeColor()); | |
System.out.println("Transparency: " + clr.getTransparency()); | |
System.out.println("Type: " + clr.getType()); |
ناتج وحدة التحكم التي تم إنشاؤها بواسطة نموذج التعليمات البرمجية
هنا هو إخراج وحدة التحكم من نموذج التعليمات البرمجية أعلاه عند تنفيذه مع المقدمةملف اكسل المصدر.
Color: com.aspose.cells.Color@deff0000
ColorIndex: 16711672
IsShapeColor: true
Transparency: 0.13
Type: 2