Back to Devexpress

SpreadsheetControl.ActiveChartSheet Property

wpf-devexpress-dot-xpf-dot-spreadsheet-dot-spreadsheetcontrol-7b1f481c.md

latest2.6 KB
Original Source

SpreadsheetControl.ActiveChartSheet Property

Gets the chart sheet that is currently displayed in the SpreadsheetControl.

Namespace : DevExpress.Xpf.Spreadsheet

Assembly : DevExpress.Xpf.Spreadsheet.v25.2.dll

NuGet Package : DevExpress.Wpf.Spreadsheet

Declaration

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

Property Value

TypeDescription
ChartSheet

A ChartSheet object that specifies the active chart sheet.

|

Remarks

If the currently active sheet in the SpreadsheetControl is a Worksheet, the ActiveChartSheet property returns null ( Nothing in VB).

You can also use the SpreadsheetControl.ActiveSheet property to obtain the currently active sheet in a workbook containing both worksheets and chart sheets. The Sheet.SheetType property allows you to get the type of the active sheet.

To specify an active chart sheet in code, use the ChartSheetCollection.ActiveChartSheet or SheetCollection.ActiveSheet property.

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

ActiveSheet

SpreadsheetControl Class

SpreadsheetControl Members

DevExpress.Xpf.Spreadsheet Namespace