Dahili Stillerle Kelime Sanatı Metni Ekleyin
Olası Kullanım Senaryoları
Aspose.Cells for Python via .NET kullanarak Word Art Metni ve Dahili Stilleri ekleyebilirsiniz. Bunun için ShapeCollection.add_word_art() yöntemini kullanın.
Dahili Stillerle Word Art Metni Ekleme
Aşağıdaki örnek kod farklı Dahili Stillerle Kelime Sanatı metinleri ekler. Lütfen bu kodla oluşturulan çıktı excel dosyasını kontrol edin. Bu, Microsoft Excel’de çıktı excel dosyası‘nın nasıl göründüğüdür.
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 | |
# The path to the documents directory. | |
dataDir = RunExamples.GetDataDir(".") | |
# Create workbook object | |
wb = Workbook() | |
# Access first worksheet | |
ws = wb.worksheets[0] | |
# Add Word Art Text with Built-in Styles | |
ws.shapes.add_word_art(PresetWordArtStyle.WORD_ART_STYLE1, "Aspose File Format APIs", 00, 0, 0, 0, 100, 800) | |
ws.shapes.add_word_art(PresetWordArtStyle.WORD_ART_STYLE2, "Aspose File Format APIs", 10, 0, 0, 0, 100, 800) | |
ws.shapes.add_word_art(PresetWordArtStyle.WORD_ART_STYLE3, "Aspose File Format APIs", 20, 0, 0, 0, 100, 800) | |
ws.shapes.add_word_art(PresetWordArtStyle.WORD_ART_STYLE4, "Aspose File Format APIs", 30, 0, 0, 0, 100, 800) | |
ws.shapes.add_word_art(PresetWordArtStyle.WORD_ART_STYLE5, "Aspose File Format APIs", 40, 0, 0, 0, 100, 800) | |
# Save the workbook in xlsx format | |
wb.save(dataDir + "output_out.xlsx") |