corelibraries-devexpress-dot-xtracharts-dot-chartimage.md
Specifies an image to be loaded to the chart control.
Namespace : DevExpress.XtraCharts
Assembly : DevExpress.XtraCharts.v25.2.dll
NuGet Package : DevExpress.Charts
public DXImage DXImage { get; set; }
Public Property DXImage As DXImage
| Type | Description |
|---|---|
| DXImage |
The uploaded image.
|
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
DXImage image = DXImage.FromStream(outfile);
item.MarkerImage.DXImage = image;
winforms-chart-add-a-custom-legend-item/VB/CustomLegendItemSample/Form1.vb#L25
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