IWbs.SumColumnsGlobally Method

Sums specified columns and writes the results into another column.
Sub SumColumnsGlobally( _ 
ByVal ColumnNamesToSum As String, _ 
ByVal TargetColumnName As String, _ 
Optional ByVal SumAlsoBranches As Boolean = True, _ 
Optional ByVal SumWhereForBranches As PositionInWbsBranch = PositionInWbsBranch.Auto _ 
)
This language is not supported or no code example is available.
void SumColumnsGlobally( 
string ColumnNamesToSum
string TargetColumnName
bool SumAlsoBranches = True, 
PositionInWbsBranch SumWhereForBranches = PositionInWbsBranch.Auto 
)
This language is not supported or no code example is available.

Parameters

ColumnNamesToSum
string

The names (mnemonics) of the columns to be summed, separated by a semicolon ';'.

TargetColumnName
string

The name (mnemonic) of the target column, where the results will be written.

SumAlsoBranches
bool

Indicates whether chapters (branches) should be included in the computation.

SumWhereForBranches
PositionInWbsBranch

Optional. Specifies whether to write the results to bottom or to top of branches. The default value is PositionInWbsBranch.Auto.

Exception type Condition

QdvApiException

A problem occurred.

Remarks
 
This method writes to the WBS workbook using ITask.SetFieldValue method. But it already optimizes the performance so it is not necessary to temporarily disable automatic calculation with WbsWorkbookCalculationMode property.
Version
 
Available since QDV 7.13.0001.

.NET Framework

Supported in: 4.8, 4.7, 4.6, 4.5.2

In this article

Definition