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

WorksheetCollection.ActiveWorksheet Property

Gets or sets the currently active worksheet within a workbook.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v20.1.Core.dll

Declaration

Worksheet ActiveWorksheet { get; set; }
Property ActiveWorksheet As Worksheet

Property Value

Type Description
Worksheet

A Worksheet object that specifies the active worksheet.

Examples

To set an active worksheet within a workbook, assign the corresponding Worksheet object to the WorksheetCollection.ActiveWorksheet property.

// Set the second worksheet under the "Sheet2" name as active.
workbook.Worksheets.ActiveWorksheet = workbook.Worksheets["Sheet2"];
See Also