Back to Devexpress

SummaryArgs.TotalValue Property

corelibraries-devexpress-dot-mvvm-dot-xpf-dot-summaryargs-7fe35f51.md

latest3.1 KB
Original Source

SummaryArgs.TotalValue Property

Gets or sets the total summary value.

Namespace : DevExpress.Mvvm.Xpf

Assembly : DevExpress.Mvvm.v25.2.dll

NuGet Packages : DevExpress.Mvvm, DevExpress.Win.Navigation

Declaration

csharp
public object TotalValue { get; set; }
vb
Public Property TotalValue As Object

Property Value

TypeDescription
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

csharp
if(args.SummaryProcess == SummaryProcess.Start) {
    args.TotalValue = 0;
}

wpf-tree-list-calculate-custom-node-summaries/CS/CustomNodeSummaries_MVVM/MainViewModel.cs#L32

csharp
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

vb
If args.SummaryProcess = SummaryProcess.Start Then
    args.TotalValue = 0
End If

wpf-tree-list-calculate-custom-node-summaries/VB/CustomNodeSummaries_MVVM/MainViewModel.vb#L38

vb
If args.SummaryProcess = SummaryProcess.Calculate Then
    args.TotalValue = Convert.ToDouble(args.TotalValue) + CDbl(args.FieldValue)
End If

See Also

SummaryArgs Class

SummaryArgs Members

DevExpress.Mvvm.Xpf Namespace