dotnetCHARTING Send comments on this topic.
Calculate(String,Calculation,ElementValue) Method
See Also 
dotnetCHARTING Namespace > Series Class > Calculate Method : Calculate(String,Calculation,ElementValue) Method


name
Name of the returned element.
calculation
Calculation to perform.
subValueSource
The ElementValue to store in the resulting element's SubValue collection.
Performs a calculation on this series and stores the specified source element values in the resulting element's SubValue collections.

Syntax

Visual Basic (Declaration) 
Public Overloads Function Calculate( _
   ByVal name As String, _
   ByVal calculation As Calculation, _
   ByVal subValueSource As ElementValue _
) As Element
Visual Basic (Usage)Copy Code
Dim instance As Series
Dim name As String
Dim calculation As Calculation
Dim subValueSource As ElementValue
Dim value As Element
 
value = instance.Calculate(name, calculation, subValueSource)
C# 
public Element Calculate( 
   string name,
   Calculation calculation,
   ElementValue subValueSource
)

Parameters

name
Name of the returned element.
calculation
Calculation to perform.
subValueSource
The ElementValue to store in the resulting element's SubValue collection.

Return Value

Returns an Element object based on the specified calculation. The element values used to derive the resulting element are stored in the element's SubValues collection.

Remarks

This method can be useful when using MicroCharts in conjunction with the element %SubValueList token.

See Also

© 2010 All Rights Reserved.