اقرأ لون تأثير توهج الشكل
Contents
[
Hide
]
سيناريوهات الاستخدام الممكنة
إذا كنت ترغب في قراءة لون تأثير التوهج لأي شكل ، فيرجى استخدام ملفشكل ، تدفق ، لونخاصية. سيساعدك في العثور على الخصائص المختلفة المتعلقة بلون تأثير التوهج للشكل.
اقرأ لون تأثير التوهج للشكل
يرجى الاطلاع على نموذج التعليمات البرمجية التالي وملفملف اكسل المصدروإخراج وحدة التحكم للرجوع اليها. توضح لقطة الشاشة التالية تأثير التوهج للشكل داخل ملف Excel المصدر عند عرضها في Microsoft Excel.
C# كود لقراءة لون الأشكال وتأثير التوهج
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); | |
// Read the source excel file | |
Workbook book = new Workbook(dataDir + "sourceGlowEffectColor.xlsx"); | |
// Access first worksheet | |
Worksheet sheet = book.Worksheets[0]; | |
// Access the shape | |
Shape shape = sheet.Shapes[0]; | |
// Read the glow effect color and its various properties | |
GlowEffect effect = shape.Glow; | |
CellsColor color = effect.Color; | |
Console.WriteLine("Color: " + color.Color); | |
Console.WriteLine("ColorIndex: " + color.ColorIndex); | |
Console.WriteLine("IsShapeColor: " + color.IsShapeColor); | |
Console.WriteLine("Transparency: " + color.Transparency); | |
Console.WriteLine("Type: " + color.Type); |
إخراج وحدة التحكم
هنا هو إخراج وحدة التحكم من نموذج التعليمات البرمجية أعلاه عند تنفيذه مع المقدمةملف اكسل المصدر.
Color: Color [A=222, R=255, G=0, B=0]ColorIndex: 16711672
IsShapeColor: True
Transparency: 0.13
Type: RGB