dashboard-devexpress-dot-dashboardwin-dot-dashboardviewer-26095d4a.md
Gets the current dashboard state.
Namespace : DevExpress.DashboardWin
Assembly : DevExpress.Dashboard.v25.2.Win.dll
NuGet Package : DevExpress.Win.Dashboard
public DashboardState GetDashboardState()
Public Function GetDashboardState As DashboardState
| Type | Description |
|---|---|
| DashboardState |
A DashboardState object that contains modifications produced by end-user interaction.
|
Refer to the Manage Dashboard State document for details about a dashboard state.
The following code snippets (auto-collected from DevExpress Examples) contain references to the GetDashboardState() method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
winforms-dashboard-save-restore-dashboard-state/CS/WinFormsDashboard_DashboardState/Form1.cs#L56
{
var state = dashboardViewer1.GetDashboardState();
var stateValue = state.SaveToXml().ToString(SaveOptions.DisableFormatting);
private void ViewerForm1_FormClosing(object sender,FormClosingEventArgs e) {
var dState = dashboardViewer.GetDashboardState();
var stateValue = dState.SaveToXml().ToString(SaveOptions.DisableFormatting);
winforms-dashboard-save-restore-dashboard-state/VB/WinFormsDashboard_DashboardState/Form1.vb#L47
Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As FormClosingEventArgs)
Dim state = dashboardViewer1.GetDashboardState()
Dim stateValue = state.SaveToXml().ToString(SaveOptions.DisableFormatting)
Private Sub ViewerForm1_FormClosing(ByVal sender As Object, ByVal e As FormClosingEventArgs) Handles Me.FormClosing
Dim dState = dashboardViewer.GetDashboardState()
Dim stateValue = dState.SaveToXml().ToString(SaveOptions.DisableFormatting)
See Also