図形またはチャートのグロー効果の操作

考えられる使用シナリオ

Aspose.Cells はシェイプ.グロープロパティと一緒にグロー効果シェイプまたはチャートのグロー効果を操作するクラス。のグロー効果クラスには、アプリケーションの要件ごとに異なる結果を達成するために設定できる次のプロパティが含まれています。

図形またはチャートのグロー効果の操作

次のサンプル コードは、ソースエクセルファイル最初のワークシートの最初の形状にアクセスし、サブプロパティを設定しますシェイプ.グロープロパティに保存し、ワークブックを出力エクセルファイル.

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