dotnetCHARTING Send comments on this topic.
EvaluateExpression Method
See Also 
dotnetCHARTING Namespace > DataSource Class : EvaluateExpression Method


text
String with tokens to evaluate.
cType
Chart type used with this DataSource.
urlEncode
When true, the returned string is urlEncoded.
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

Visual Basic (Declaration) 
Public Function EvaluateExpression( _
   ByVal text As String, _
   ByVal cType As ChartType, _
   ByVal urlEncode As Boolean _
) As String
Visual Basic (Usage)Copy Code
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)
C# 
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.

Example

Remarks

All other string features such as expressions and embedded formatting are supported by this method.

See Also

© 2010 All Rights Reserved.