Şeklin Parlama Etkisinin Rengini Oku

Olası Kullanım Senaryoları

Herhangi bir şeklin parlama efektinin rengini okumak istiyorsanız, lütfen Shape.Glow.Color özelliğini kullanın. Bu, şeklin parlama efektinin rengi ile ilgili çeşitli özellikleri bulmanıza yardımcı olacaktır.

Şeklin Parlama Efektinin Rengini Oku

Lütfen aşağıdaki örnek kodu ve kaynak excel dosyasını ve başvurunuz için konsol çıktısını görün. Aşağıdaki ekran görüntüsü, Microsoft Excel’de görüldüğünde kaynak excel dosyasının parlama efektini gösterir.

todo:image_alt_text

C# kodu şekillerin parlama efektinin rengini okumak için

// 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);

Konsol Çıkışı

Yukarıdaki örnek kodun, sağlanan kaynak excel dosyası ile birlikte çalıştırıldığında konsol çıktısı. İşte yukarıdaki örnek kodun konsol çıktısı.

Color: Color [A=222, R=255, G=0, B=0]

ColorIndex: 16711672

IsShapeColor: True

Transparency: 0.13

Type: RGB