Home : How can the element label show its name and other information.
Q13034 - HOWTO: 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.

Related Articles
No Related Articles Available.

Article Attachments
No Attachments Available.

Related External Links
No Related Links Available.
Help us improve this article...
What did you think of this article?

poor 
1
2
3
4
5
6
7
8
9
10

 excellent
Tell us why you rated the content this way. (optional)
 
Approved Comments...
No user comments available for this article.
Created on 4/21/2006.
Last Modified on 4/10/2009.
Last Modified by Support.
Article has been viewed 3793 times.
Rated 4 out of 10 based on 4 votes.
Print Article
Email Article