Back to Devexpress

SpreadsheetScrollbarOptions.Visibility Property

windowsforms-devexpress-dot-xtraspreadsheet-dot-spreadsheetscrollbaroptions.md

latest2.3 KB
Original Source

SpreadsheetScrollbarOptions.Visibility Property

Gets or sets a value that indicates whether the SpreadsheetControl’s scrollbar should be displayed or hidden.

Namespace : DevExpress.XtraSpreadsheet

Assembly : DevExpress.XtraSpreadsheet.v25.2.dll

NuGet Package : DevExpress.Win.Spreadsheet

Declaration

csharp
[XtraSerializableProperty]
public SpreadsheetScrollbarVisibility Visibility { get; set; }
vb
<XtraSerializableProperty>
Public Property Visibility As SpreadsheetScrollbarVisibility

Property Value

TypeDescription
SpreadsheetScrollbarVisibility

One of the SpreadsheetScrollbarVisibility enumeration values.

|

Available values:

NameDescription
Auto

The scrollbar is hidden or displayed depending on the workbook display options.

| | Visible |

The scrollbar is always displayed.

| | Hidden |

The scrollbar is always hidden.

|

Remarks

Use the Visibility property to control the visibility of the horizontal and vertical scrollbars in the SpreadsheetControl. Note that this property only specifies the way a document is displayed in the SpreadsheetControl and does not change a workbook file.

Note

Currently, the SpreadsheetScrollbarVisibility.Auto value has no effect on the visual appearance of the SpreadsheetControl - both horizontal and vertical scrollbars will be displayed despite the settings of the loaded document.

See Also

SpreadsheetScrollbarOptions Class

SpreadsheetScrollbarOptions Members

DevExpress.XtraSpreadsheet Namespace