Back to Devexpress

DashboardDesigner.AddToHistory(IHistoryItem) Method

dashboard-devexpress-dot-dashboardwin-dot-dashboarddesigner-dot-addtohistory-x28-devexpress-dot-dashboardwin-dot-ihistoryitem-x29.md

latest4.2 KB
Original Source

DashboardDesigner.AddToHistory(IHistoryItem) Method

Allows you to write an action to history.

Namespace : DevExpress.DashboardWin

Assembly : DevExpress.Dashboard.v25.2.Win.dll

NuGet Package : DevExpress.Win.Dashboard

Declaration

csharp
public void AddToHistory(
    IHistoryItem item
)
vb
Public Sub AddToHistory(
    item As IHistoryItem
)

Parameters

NameType
itemIHistoryItem

The following code snippets (auto-collected from DevExpress Examples) contain references to the AddToHistory(IHistoryItem) 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-custom-properties/CS/WinForms-Dashboard-Custom-Properties/Modules/ChartScaleBreakModule.cs#L45

csharp
CustomPropertyHistoryItem historyItem = new CustomPropertyHistoryItem(dashboardItem, PropertyName, newValue.ToString(), $"Scale break for {dashboardItem.ComponentName} is {status}");
    designer.AddToHistory(historyItem);
}

winforms-dashboard-display-each-series-in-separate-pane-for-chart-items/CS/MultiPaneExtension/MultiPaneModule.cs#L206

csharp
CustomPropertyHistoryItem historyItem = new CustomPropertyHistoryItem(dashboardItem, customPropertyName, settings.ToJson(), $"Autogenerate Panes for {dashboardItem.ComponentName} is {status}");
dashboardDesigner.AddToHistory(historyItem);
UpdateBarItems();

dashboard-constant-lines/CS/ConstantLineExtension.Win/ConstantLineModule.cs#L138

csharp
hystoryMessage);
    dashboardDesigner.AddToHistory(historyItem);
}

winforms-dashboard-custom-properties/VB/WinForms-Dashboard-Custom-Properties/Modules/ChartScaleBreakModule.vb#L45

vb
Dim historyItem As New CustomPropertyHistoryItem(dashboardItem, PropertyName, newValue.ToString(), $"Scale break for {dashboardItem.ComponentName} is {status}")
    designer.AddToHistory(historyItem)
End Sub

winforms-dashboard-display-each-series-in-separate-pane-for-chart-items/VB/MultiPaneExtension/MultiPaneModule.vb#L177

vb
Dim historyItem As New CustomPropertyHistoryItem(dashboardItem, customPropertyName, settings.ToJson(), $"Autogenerate Panes for {dashboardItem.ComponentName} is {status}")
dashboardDesigner.AddToHistory(historyItem)
UpdateBarItems()

See Also

DashboardDesigner Class

DashboardDesigner Members

DevExpress.DashboardWin Namespace