The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+
Row

WorksheetCollection.ActiveWorksheet Property

Gets or sets the currently active worksheet within a workbook.

Namespace: DevExpress.Spreadsheet

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

Declaration

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

Property Value

Type Description
Worksheet

A Worksheet object that specifies the active worksheet.

Property Value

Type Description
Worksheet

A Worksheet object that specifies the active 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