Working with the Glow Effect of Shape or Chart

Possible Usage Scenarios

Aspose.Cells provides the Shape.Glow property along with GlowEffect class to work with the glow effect of shape or chart. The GlowEffect class contains the following properties which can be set to achieve different results as per application requirements.

Working with the Glow Effect of Shape or Chart

The following sample code loads the source excel file and accesses the first shape in the first worksheet and sets the sub-properties of Shape.Glow property and then saves the workbook in output excel file.

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