Determines whether the chart's image is stored through its binary data or through a file reference. By default a chart's image is stored with its binary data.

Syntax

public ImageSaveMode SaveMode { get; set; }

Members

Member Description
Auto The image is saved as specified with the SaveSettings.ImageSaveMode property.
SaveAsData The image is saved in a Text Control document with its complete binary data.
SaveAsFileReference The image is saved in a Text Control document through a file reference. The technical article Loading and Saving Images describes where newly created image files are stored.

Examples

The following snippet shows how to use the TXTextControl.DataVisualization.ChartFrame.SaveMode property. Here, it is set to Auto - which means that the image is saved as specified with the SaveSettings.ImageSaveMode property.

System.Windows.Forms.DataVisualization.Charting.Chart myChart = new System.Windows.Forms.DataVisualization.Charting.Chart();
TXTextControl.DataVisualization.ChartFrame chartFrame = new TXTextControl.DataVisualization.ChartFrame(myChart);

chartFrame.Name = "points";
chartFrame.ExportCompressionQuality = 100; 
chartFrame.ExportFileName = ""; 
chartFrame.ExportFilterIndex = 0; 
chartFrame.ExportResolution = 0; // here, the ExportResolution property is set
System.Drawing.Rectangle myChartFrameBounds = chartFrame.Bounds;  
System.ComponentModel.Component ThisIsMyChart = chartFrame.Chart; 
chartFrame.ID = 0; 
chartFrame.Alignment = 
chartFrame.InsertionMode = 
chartFrame.Moveable = true;
chartFrame.SaveMode = TXTextControl.ImageSaveMode.Auto; // here, the SaveMode property is set
System.Drawing.Size myFrameSize = chartFrame.Size;
chartFrame.Sizeable = true;
chartFrame.TextDistances = new int[] { -1, -1, -1, -1 }; 
int myTextPosition = chartFrame.TextPosition;

textControl1.Charts.Add(chartFrame, -1);