قم بتعيين تعليق جدول أو قائمة كائن
Contents
[
Hide
]
قم بتعيين تعليق جدول أو قائمة كائن داخل ورقة العمل
Aspose.Cells for Python via Java يدعم إضافة تعقيب كائن القائمة. لهذا ، يوفر API امتدادListObject.Commentخاصية. التعليق الذي أضافهListObject.Commentستكون الخاصية مرئية داخلxl / table / tableName.xml ملف.
تُظهر لقطة الشاشة التالية التعليق الذي تم إنشاؤه بواسطة نموذج التعليمات البرمجية في المستطيل الأحمر.
يقوم نموذج التعليمات البرمجية التالي بتحميل ملفملف اكسل المصدر، يعيّن تعليق كائن الجدول أو القائمة الأول داخل ورقة العمل
This file contains 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
source_directory = "Examples/SampleFiles/SourceDirectory/" | |
output_directory = "Examples/SampleFiles/OutputDirectory/" | |
workbook = Workbook(source_directory + "source.xlsx") | |
# Access first worksheet | |
worksheet = workbook.getWorksheets().get(0) | |
# Access first list object or table | |
listObj = worksheet.getListObjects().get(0) | |
# Set the comment of the list object | |
listObj.setComment("This is Aspose.Cells comment.") | |
# Save the excel file. | |
workbook.save(output_directory + "STheCofTOrListObject_out.xlsx") |