Visa och dölj rullningsfält

Kontrollera synligheten för rullningsfält

För att kontrollera rullningsfältets synlighet i GridDesktop, använd egenskaperna IsVerticalScrollBarVisible och IsHorizontalScrollBarVisible. Exemplen nedan visar hur man döljer och visar rullningsfält.

Programexempel: Dölja rullningsfält

För att dölja rullningsfälten, ställ in egenskaperna som styr synligheten till false.

// 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;

Programexempel: Göra rullningsfält synliga

För att göra rullgardinsmenyer synliga, ställ in egenskaperna som styr synlighet till true.

// 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;