使用形状或图表的发光效果

可能的使用场景

Aspose.Cells 提供了形状.发光财产连同发光效果使用形状或图表的发光效果的类。这发光效果类包含以下属性,可以根据应用程序要求设置这些属性以获得不同的结果。

使用形状或图表的发光效果

下面的示例代码加载源文件并访问第一个工作表中的第一个形状并设置子属性形状.发光属性,然后将工作簿保存在输出excel文件.

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