How can the element label show its name and other information.


QUESTION

How can the element label show its name and other information.

ANSWER

The element's text string behaves like a template and uses tokens to represent information. This also applied to virtually all labels. Tokens can be used to represent most object's attributes.

Example
This code demonstrates how to show the element's name and value:

[C#]

Chart.DefaultElement.SmartLabel.Text = "%Name %Value";
 

 
[Visual Basic]

Chart.DefaultElement.SmartLabel.Text = "%Name %Value"
 

See also Tokens Reference for a list of available tokens.

To use other custom information with tokens, custom attributes can be used. Please see the custom attributes tutorial for more information.


Posted Friday, April 21, 2006 by Support
https://www.dotnetcharting.com/kb/KnowledgebaseArticle13034.aspx