Set preset WordArt style to the text of the shape

Possible Usage Scenarios

You can set preset WordArt style to the text of the shape using Aspose.Cells for Python via .NET. Please use FontSetting.set_word_art_style() or FontSettingCollection.set_word_art_style() methods for this purpose.

Set preset WordArt style to the text of the shape

The following sample code creates a text box with some text and then sets preset WordArt style of its text using FontSetting.set_word_art_style() method. This is how the output excel file looks in Microsoft Excel.

todo:image_alt_text

from aspose.cells import Workbook
from aspose.cells.drawing import PresetWordArtStyle
# For complete examples and data files, please go to https:# github.com/aspose-cells/Aspose.Cells-for-.NET
# Create workbook object
workbook = Workbook()
# Access first worksheet
worksheet = workbook.worksheets[0]
# Create a textbox with some text
textbox = worksheet.shapes.add_text_box(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.
fntSetting = textbox.get_characters()[0] as FontSetting
fntSetting.set_word_art_style(PresetWordArtStyle.WORD_ART_STYLE3)
# Save the workbook in xlsx format
workbook.save(outputDir + "outputSetPresetWordArtStyle.xlsx")