عرض وإخفاء أشرطة التمرير للمصنفات في xlsx4j

Aspose.Cells - عرض وإخفاء أشرطة تمرير مصنفات العمل

Aspose.Cells يوفر فصل دراسي ،دفتر العمل يمثل ملف Excel.دفتر العمل توفر class مجموعة واسعة من الخصائص والأساليب لإدارة ملف Excel. ولكن للتحكم في رؤية أشرطة التمرير في ملف Excel ، يمكن للمطورين استخدام ملفاتsetVScrollBarVisible & setHScrollBarVisible طرقدفتر العمل صف دراسي.

Java

 //Instantiating a Excel object by excel file path

Workbook workbook = new Workbook(dataDir + "book1.xls");

//Hiding the vertical scroll bar of the Excel file

workbook.getSettings().setVScrollBarVisible(false);

//Hiding the horizontal scroll bar of the Excel file

workbook.getSettings().setHScrollBarVisible(false);

//Saving the modified Excel file in default (that is Excel 2003) format

workbook.save(dataDir + "AsposeSrollbarsHide.xls");

// ===============================================================

//Displaying the vertical scroll bar of the Excel file

workbook.getSettings().setVScrollBarVisible(true);

//Displaying the horizontal scroll bar of the Excel file

workbook.getSettings().setHScrollBarVisible(true);

//Saving the modified Excel file in default (that is Excel 2003) format

workbook.save(dataDir + "AsposeDisplaySrollbars.xls");

قم بتنزيل كود التشغيل

تنزيل نموذج التعليمات البرمجية