Back to Devexpress

ChartImage.DXImage Property

corelibraries-devexpress-dot-xtracharts-dot-chartimage.md

latest2.4 KB
Original Source

ChartImage.DXImage Property

Specifies an image to be loaded to the chart control.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
public DXImage DXImage { get; set; }
vb
Public Property DXImage As DXImage

Property Value

TypeDescription
DXImage

The uploaded image.

|

Remarks

Use this property instead of ChartImage.Image to specify an image to be loaded to the chart control.

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

winforms-chart-add-a-custom-legend-item/CS/CustomLegendItemSample/Form1.cs#L21

csharp
DXImage image = DXImage.FromStream(outfile);
item.MarkerImage.DXImage = image;

winforms-chart-add-a-custom-legend-item/VB/CustomLegendItemSample/Form1.vb#L25

vb
Dim image As DXImage = DXImage.FromStream(outfile)
item.MarkerImage.DXImage = image
' Set a value indicating that both autogenerated and custom items are displayed.

See Also

ChartImage Class

ChartImage Members

DevExpress.XtraCharts Namespace