.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+
Row

SheetCollection.ActiveSheet Property

Gets or sets the currently active sheet within a workbook.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v19.2.Core.dll

Declaration

Sheet ActiveSheet { get; set; }
Property ActiveSheet As Sheet
Sheet ActiveSheet { get; set; }
Property ActiveSheet As Sheet
Sheet ActiveSheet { get; set; }
Property ActiveSheet As Sheet

Property Value

Type Description
Sheet

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

Property Value

Type Description
Sheet

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

Property Value

Type Description
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 also use the WorksheetCollection.ActiveWorksheet or ChartSheetCollection.ActiveChartSheet property to return or specify an active worksheet or chart sheet in a document.

See Also