Ctrl + E , Ctrl + W
Иногда Вы хотите видеть поток кода со всеми Вашими отступами на месте; иногда необходимо видеть все 50 атрибутов в объявлении GridView. Это позволяет Вам легко переключиться назад и вперед.
Да, это возможно:
using System.Windows.Forms.DataVisualization.Charting;
using System.IO;
...
public void GeneratePlot(IList<DataPoint> series, Stream outputStream) {
using (var ch = new Chart()) {
ch.ChartAreas.Add(new ChartArea());
var s = new Series();
foreach (var pnt in series) s.Points.Add(pnt);
ch.Series.Add(s);
ch.SaveImage(outputStream, ChartImageFormat.Jpeg);
}
}
If all you want is chart images. Then you can use the chart controls to save to disk.
myChart.SaveImage("C:\mypic.png", System.Drawing.Imaging.ImageFormat.Png)
Then load that image from the disk. If the charts are only generated once then you can also just check the filesystem for the image first and then only re-render it if it doesnt exist.
Hope this helps.