عرض أو إخفاء خطوط الشبكة في Python
Contents
[
Hide
]
Aspose.Cells - كيفية إظهار أو إخفاء خطوط الشبكة
كيفية إخفاء خطوط الشبكة
لإخفاء ورقة العمل باستخدام**Aspose.Cells Java لروبي **، اتصل بـ displayhidegridlines وحدة.
Python كود
workbook = self.Workbook(self.dataDir + "Book1.xls")
# Accessing the first worksheet in the Excel file
worksheets = workbook.getWorksheets()
worksheet = worksheets.get(0)
# Hiding the grid lines of the first worksheet of the Excel file
worksheet.setGridlinesVisible(False)
# Saving the modified Excel file in default (that is Excel 2000) format
workbook.save(self.dataDir + "output.xls")
\# Print message
print "Grid lines are now hidden on sheet 1, please check the output document."
كيفية عرض خطوط الشبكة
لجعل خطوط الشبكة مرئية، استخدم طريقة setGridlinesVisible(true) الخاصة بفئة ورقة العمل.
Python كود
# Displaying the gridlines of the worksheet
worksheet.setGridlinesVisible(True)
تحميل كود التشغيل
تحميلعرض إخفاء خطوط الشبكة (Aspose.Cells) من أي من مواقع الترميز الاجتماعي المذكورة أدناه: