corelibraries-devexpress-dot-mvvm-dot-xpf-dot-summaryargs-7fe35f51.md
Gets or sets the total summary value.
Namespace : DevExpress.Mvvm.Xpf
Assembly : DevExpress.Mvvm.v25.2.dll
NuGet Packages : DevExpress.Mvvm, DevExpress.Win.Navigation
public object TotalValue { get; set; }
Public Property TotalValue As Object
| Type | Description |
|---|---|
| Object |
The total summary value.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the TotalValue property.
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.
wpf-data-grid-summarize-empty-cells/CS/CustomSummary_EmptyCells_MVVM/MainViewModel.cs#L29
if(args.SummaryProcess == SummaryProcess.Start) {
args.TotalValue = 0;
}
wpf-tree-list-calculate-custom-node-summaries/CS/CustomNodeSummaries_MVVM/MainViewModel.cs#L32
if(args.SummaryProcess == SummaryProcess.Calculate) {
args.TotalValue = Convert.ToDouble(args.TotalValue) + (double)args.FieldValue;
}
wpf-data-grid-summarize-empty-cells/VB/CustomSummary_EmptyCells_MVVM/MainViewModel.vb#L34
If args.SummaryProcess = SummaryProcess.Start Then
args.TotalValue = 0
End If
wpf-tree-list-calculate-custom-node-summaries/VB/CustomNodeSummaries_MVVM/MainViewModel.vb#L38
If args.SummaryProcess = SummaryProcess.Calculate Then
args.TotalValue = Convert.ToDouble(args.TotalValue) + CDbl(args.FieldValue)
End If
See Also