Şeklin veya Grafiğin Işıma Efekti ile Çalışma

Olası Kullanım Senaryoları

Aspose.Cells şunları sağlar:Şekil.Glow ile birlikte mülkGlowEffect şeklin veya grafiğin parlama efektiyle çalışmak için sınıf. buGlowEffectclass, uygulama gereksinimlerine göre farklı sonuçlar elde etmek için ayarlanabilen aşağıdaki özellikleri içerir.

Şeklin veya Grafiğin Işıma Efekti ile Çalışma

Aşağıdaki örnek kod,kaynak excel dosyası ve ilk çalışma sayfasındaki ilk şekle erişir ve alt özelliklerini ayarlar.Şekil.Glow özelliği ve ardından çalışma kitabını şuraya kaydeder:çıktı excel dosyası.

// 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);
// Load your source excel file
Workbook wb = new Workbook(dataDir + "sample.xlsx");
// Access first worksheet
Worksheet ws = wb.Worksheets[0];
// Access first shape
Shape sh = ws.Shapes[0];
// Set the glow effect of the shape, Set its Size and Transparency properties
GlowEffect ge = sh.Glow;
ge.Size = 30;
ge.Transparency = 0.4;
// Save the workbook in xlsx format
wb.Save(dataDir + "output_out.xlsx");