combit List & Label 30 - .NET Help
combit.Reporting.Dom Namespace / CollectionSumVariables Class
Members Example


CollectionSumVariables Class
This collection contains the sum variables of the current project. It can also be used to add new sum variables to the project.
Object Model
CollectionSumVariables ClassSumVariable Class
Syntax
'Declaration
 
Public Class CollectionSumVariables 
   Inherits combit.Reporting.Dom.DomCollectionBase(Of SumVariable)
 
Example
// add new sum variable
SumVariable sumVar = new SumVariable(proj.SumVariables); 
 
// set sum variable options
sumVar.Name = "@Sum01"; 
sumVar.Contents = "1234"; 
sumVar.IsPageSum = "True"; 
  
// iterate all sum variables
foreach(SumVariable sumVariable in proj.SumVariables) 
{ 
    string sumVarName = sumVariable.Name 
}
Inheritance Hierarchy

System.Object
   System.Collections.ObjectModel.Collection<T>
      System.Collections.ObjectModel.ObservableCollection<T>
         combit.Reporting.Dom.DomCollectionBase<T>
            combit.Reporting.Dom.CollectionSumVariables

Requirements

Platforms: Windows 10 (Version 21H2 - 23H2), Windows 11 (21H2 - 22H2), Windows Server 2016 - 2022
.NET: .NET Framework 4.8, .NET 6, .NET 8, .NET 9

See Also