Akıllı sanatta metni değiştir
Contents
[
Hide
]
Olası Kullanım Senaryoları
Akıllı sanat, bir çalışma kitabındaki önemli nesnelerden biridir. Birçok kez akıllı sanatta metni güncelleme ihtiyacı olur. Aspose.Cells, bunu Shape.text özelliğini ayarlayarak sağlar.
Örnek kaynak dosyası aşağıdaki bağlantıdan indirilebilir:
Örnek Kod
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from aspose.cells import OoxmlSaveOptions, Workbook | |
# For complete examples and data files, please go to https:# github.com/aspose-cells/Aspose.Cells-for-.NET | |
wb = Workbook(sourceDir + "SmartArt.xlsx") | |
for worksheet in wb.worksheets: | |
for shape in worksheet.shapes: | |
shape.alternative_text = "ReplacedAlternativeText" | |
if shape.is_smart_art: | |
for smartart in shape.get_result_of_smart_art().get_grouped_shapes(): | |
smartart.text = "ReplacedText" | |
options = OoxmlSaveOptions() | |
options.update_smart_art = True | |
wb.save(outputDir + "outputSmartArt.xlsx", options) |