ChartElement.Tag Property
Gets or sets the object that contains data related to the chart element.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v19.2.dll
Declaration
Property Value
Type | Description |
---|---|
Object | A Object that contains data about the chart element. |
Property Paths
You can access this nested property as listed below:
Remarks
Any type derived from the Object class can be assigned to this property. Use it to store data associated with a particular chart element (e.g., an annotaton, an axis, an axis title, a diagram).
Note
If a chart is bound to data, the Tag property is automatically assigned to the underlying object used to create this chart element (e.g. to the corresponding DataRowView object, if a chart is bound to a DataTable).
Important
When the chart is serialized, only string Tag values are saved.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the Tag property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.