Skip to main content
A newer version of this page is available. .

ChartElement.Tag Property

Gets or sets the object that contains data related to the chart element.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v18.2.dll

Declaration

[TypeConverter(typeof(TagConverter))]
[XtraSerializableProperty]
[XtraChartsLocalizableCategory(XtraChartsCategory.Misc)]
public object Tag { get; set; }

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:

Show 152 property paths
Library Object Type Path to Tag
Cross-Platform Class Library AreaSeriesView
AreaSeriesViewBase
AverageTrueRange
Axis
Axis2D
Axis3D
AxisBase
AxisLabel
AxisLabel3D
AxisX
AxisX3D
AxisXBase
AxisY
AxisY3D
AxisYBase
BarSeriesView
BollingerBands
BubbleSeriesView
CandleStickDrawOptions
CandleStickSeriesView
ChaikinsVolatility
ChartRangeControlClientDateTimeOptions
ChartRangeControlClientNumericOptions
CommodityChannelIndex
CrosshairOptions
DataSourceBasedErrorBars
DateTimeScaleOptions
DetrendedPriceOscillator
Diagram3D
ErrorBars
ExponentialMovingAverage
FibonacciIndicator
FillStyle2D
.Options.Tag
FillStyle3D
.Options.Tag
FillStyleBase
.Options.Tag
FinancialDrawOptions
FinancialIndicator
FinancialSeriesViewBase
FixedValueErrorBars
FullStackedAreaPointOptions
FullStackedAreaSeriesView
FullStackedBarPointOptions
FullStackedBarSeriesView
FullStackedLinePointOptions
FullStackedLineSeriesView
FullStackedPointOptions
FullStackedSplineAreaSeriesView
FullStackedStepAreaSeriesView
FunnelDiagram3D
FunnelPointOptions
GanttAxisX
GanttDiagram
GanttDrawOptions
GanttSeriesView
Indicator
LineSeriesView
MassIndex
MedianPrice
MovingAverage
MovingAverageConvergenceDivergence
OverlappedGanttSeriesView
OverlappedRangeBarSeriesView
PercentageErrorBars
PiePointOptions
PointOptions
PointSeriesView
PointSeriesViewBase
PolarAxisX
PolarDiagram
PolygonFillStyle
.Options.Tag
PolygonFillStyle3D
.Options.Tag
RadarAxis
RadarAxisX
RadarAxisXLabel
RadarAxisY
RadarAxisYLabel
RadarDiagram
RangeAreaPointOptions
RangeAreaSeriesView
RangeBarPointOptions
RangeBarSeriesView
RangePointOptions
RateOfChange
RectangleFillStyle
.Options.Tag
RectangleFillStyle3D
.Options.Tag
RegressionLine
RelativeStrengthIndex
ScatterLineSeriesView
SecondaryAxisX
SecondaryAxisY
SeparatePaneIndicator
Series
SeriesBase
SeriesTemplate
SeriesViewColorEachSupportBase
SideBySideBarSeriesView
SideBySideFullStackedBarSeriesView
SideBySideGanttSeriesView
SideBySideRangeBarSeriesView
SideBySideStackedBarSeriesView
SimpleDiagram
SimpleDiagram3D
SimpleMovingAverage
SimplePointOptions
SingleLevelIndicator
SplineAreaSeriesView
SplineSeriesView
StackedAreaSeriesView
StackedBarSeriesView
StackedLineSeriesView
StackedSplineAreaSeriesView
StackedStepAreaSeriesView
StandardDeviation
StandardDeviationErrorBars
StandardErrorBars
StepAreaSeriesView
StepLineSeriesView
StockDrawOptions
StockPointOptions
StockSeriesView
SubsetBasedIndicator
SwiftPlotDiagram
SwiftPlotDiagramAxis
SwiftPlotDiagramAxisX
SwiftPlotDiagramAxisXBase
SwiftPlotDiagramAxisY
SwiftPlotDiagramAxisYBase
SwiftPlotDiagramSecondaryAxisX
SwiftPlotDiagramSecondaryAxisY
SwiftPlotSeriesView
SwiftPlotSeriesViewBase
TrendLine
TriangularMovingAverage
TripleExponentialMovingAverageTema
TripleExponentialMovingAverageTrix
TypicalPrice
WeightedClose
WeightedMovingAverage
WilliamsR
XYDiagram
XYDiagram2D
XYDiagram2DSeriesViewBase
XYDiagram3D
XYDiagramDefaultPane
XYDiagramPane
XYDiagramPaneBase
XYDiagramSeriesViewBase
WinForms Controls ChartControl
ASP.NET Controls and MVC Extensions ChartControlSettings
MVCxChartControl
WebChartControl
Reporting XRChart

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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference 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.

See Also