スクロール バーの表示と非表示

スクロール バーの表示の制御

GridDesktop でスクロール バーの可視性を制御するには、IsVerticalScrollBarVisible および IsHorizontalScrollBarVisible プロパティを使用します。以下の例は、スクロール バーを非表示および表示する方法を示しています。

プログラミング サンプル: スクロール バーの非表示

スクロールバーを非表示にするには、可視性を制御するプロパティを 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;

プログラミング サンプル: スクロール バーを表示する

スクロールバーを表示するには、表示を制御するプロパティを 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;