عرض وإخفاء أشرطة التمرير
Contents
[
Hide
]
تُعد أشرطة التمرير مفيدة للتنقل في محتويات جداول البيانات العريضة والعميقة ، أي التي تحتوي على العديد من الصفوف والأعمدة. تدعم معظم التطبيقات نوعين من شريط التمرير:
- شريط التمرير العمودي
- شريط التمرير الأفقي
تم العثور على كلاهما في Microsoft Excel.
يوفر Aspose.Cell’s GridDesktop API أشرطة تمرير أفقية ورأسية للتمرير عبر محتويات ورقة العمل. مع Aspose.Cells.GridDesktop APIs ، يمكن للمطورين التحكم في رؤية كل من أشرطة التمرير هذه.
التحكم في رؤية شريط التمرير
للتحكم في رؤية شريط التمرير في GridDesktop ، استخدم خصائص IsVerticalScrollBarVisible و IsHorizontalScrollBarVisible. توضح الأمثلة أدناه كيفية إخفاء وإظهار أشرطة التمرير.
نماذج البرمجة: إخفاء أشرطة التمرير
لإخفاء أشرطة التمرير ، اضبط الخصائص التي تتحكم في الرؤية على false.
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
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET | |
// Hiding the vertical scroll bar | |
gridDesktop1.IsVerticalScrollBarVisible = false; | |
// Hiding the horizontal scroll bar | |
gridDesktop1.IsHorizontalScrollBarVisible = false; |
نماذج البرمجة: جعل أشرطة التمرير مرئية
لجعل أشرطة التمرير مرئية ، قم بتعيين الخصائص التي تتحكم في الرؤية على “صواب”.
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
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET | |
// Displaying the vertical scroll bar | |
gridDesktop1.IsVerticalScrollBarVisible = true; | |
// Displaying the horizontal scroll bar | |
gridDesktop1.IsHorizontalScrollBarVisible = true; |