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

Expand / Collapse
 

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.



Rate this Article:
     

Add Your Comments


Comment require login or registration.

Details
Last Modified:Wednesday, August 11, 2010
Last Modified By: Support
Type: HOWTO
Rated 2 stars based on 4 votes.
Article has been viewed 12,029 times.
Options