SpreadsheetControl.ActiveWorksheet Property

Gets the worksheet that is currently displayed in the SpreadsheetControl.

Namespace: DevExpress.Xpf.Spreadsheet

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

Declaration

[Browsable(false)]
public Worksheet ActiveWorksheet { get; }
<Browsable(False)>
Public ReadOnly 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 ("Sheet2") as the active worksheet.
workbook.Worksheets.ActiveWorksheet = workbook.Worksheets["Sheet2"];

Implements

DevExpress.XtraSpreadsheet.ISpreadsheetControl.ActiveWorksheet
See Also