.netCHARTING v10.7 Documentation


dotnetCHARTING Namespace > DataSource Class : EvaluateExpression Method
String with tokens to evaluate.
Chart type used with this DataSource.
When true, the returned string is urlEncoded.
EvaluateExpression Method
Evaluates a string containing tokens that relate to this DataSource. For example, if this DataSource represents a series, the string "%Name" will return the actual name of the series. See the token reference for more information on available tokens.
Syntax
'Declaration
 
Public Function EvaluateExpression( _
   ByVal text As String, _
   ByVal cType As ChartType, _
   ByVal urlEncode As Boolean _
) As String
'Usage
 
Dim instance As DataSource
Dim text As String
Dim cType As ChartType
Dim urlEncode As Boolean
Dim value As String
 
value = instance.EvaluateExpression(text, cType, urlEncode)
public string EvaluateExpression( 
   string text,
   ChartType cType,
   bool urlEncode
)

Parameters

text
String with tokens to evaluate.
cType
Chart type used with this DataSource.
urlEncode
When true, the returned string is urlEncoded.
Remarks
All other string features such as expressions and embedded formatting are supported by this method.
Example
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also