Back to Devexpress

SpreadsheetControl.ActiveSheet Property

windowsforms-devexpress-dot-xtraspreadsheet-dot-spreadsheetcontrol-5955d0d3.md

latest2.8 KB
Original Source

SpreadsheetControl.ActiveSheet Property

Gets the sheet that is currently displayed in the SpreadsheetControl.

Namespace : DevExpress.XtraSpreadsheet

Assembly : DevExpress.XtraSpreadsheet.v25.2.dll

NuGet Package : DevExpress.Win.Spreadsheet

Declaration

csharp
[Browsable(false)]
public Sheet ActiveSheet { get; }
vb
<Browsable(False)>
Public ReadOnly Property ActiveSheet As Sheet

Property Value

TypeDescription
Sheet

A Sheet descendant that specifies the active worksheet or chart sheet.

|

Remarks

The ActiveSheet property is useful when you need to obtain an active sheet in a workbook containing both worksheets and chart sheets. To get the type of the active sheet, use the Sheet.SheetType property.

You can use one of the following properties to specify an active sheet in code:

An end-user can switch between sheets using the SpreadsheetControl’s Sheet Tab Selector. Before and after an active sheet is changed via the control’s UI, the SpreadsheetControl.ActiveSheetChanging and SpreadsheetControl.ActiveSheetChanged events are raised, respectively.

See Also

ActiveWorksheet

ActiveChartSheet

SpreadsheetControl Class

SpreadsheetControl Members

DevExpress.XtraSpreadsheet Namespace