シェイプのグローエフェクトの色を読み取る

可能な使用シナリオ

Aspose.Cellsを使用して、テキストの形に事前設定のWordArtスタイルを設定することができます。この目的のためには、FontSetting.SetWordArtStyle() または FontSettingCollection.SetWordArtStyle() メソッドを使用してください。

テキストのシェイプに組み込みのWordArtスタイルを設定する

次のサンプルコードでは、テキストボックスを作成し、FontSetting.SetWordArtStyle() メソッドを使用してそのテキストの形に事前設定のWordArtスタイルを設定します。これがMicrosoft Excelで表示したときの 出力エクセルファイル です。

todo:image_alt_text

// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET
// Create workbook object
Workbook workbook = new Workbook();
// Access first worksheet
Worksheet worksheet = workbook.Worksheets[0];
// Create a textbox with some text
TextBox textbox = worksheet.Shapes.AddTextBox(0, 0, 0, 0, 100, 700);
textbox.Text = "Aspose File Format APIs";
textbox.Font.Size = 44;
// Sets preset WordArt style to the text of the shape.
FontSetting fntSetting = textbox.GetRichFormattings()[0] as FontSetting;
fntSetting.SetWordArtStyle(PresetWordArtStyle.WordArtStyle3);
// Save the workbook in xlsx format
workbook.Save(outputDir + "outputSetPresetWordArtStyle.xlsx");