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

Syntax

public ImageSaveMode SaveMode { get; set; }
Public Property SaveMode() As ImageSaveMode

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 example shows how to use the TXTextControl.DataVisualization.DrawingFrame.SaveMode property. Here, it is set to Auto. This means that the image is saved as specified with the SaveSettings.ImageSaveMode property.

TXTextControl.Drawing.TXDrawingControl myDrawingControl = new TXTextControl.Drawing.TXDrawingControl();
TXTextControl.DataVisualization.DrawingFrame drawingFrame = new TXTextControl.DataVisualization.DrawingFrame(myDrawingControl);

drawingFrame.Activate();
drawingFrame.ExportCompressionQuality = 100; 
drawingFrame.ExportFileName = ""; 
drawingFrame.ExportFilterIndex = 0; 
drawingFrame.ExportResolution = 0; 
drawingFrame.SaveMode = TXTextControl.ImageSaveMode.Auto; // here, the SaveMode is set

textControl1.Drawings.Add(drawingFrame, -1);
Dim myDrawingControl As TXTextControl.Drawing.TXDrawingControl = New TXTextControl.Drawing.TXDrawingControl()
Dim drawingFrame As TXTextControl.DataVisualization.DrawingFrame = New TXTextControl.DataVisualization.DrawingFrame(myDrawingControl)

drawingFrame.Activate() ' here, the Activate method is used
drawingFrame.ExportCompressionQuality = 100
drawingFrame.ExportFileName = "" 
drawingFrame.ExportFilterIndex = 0 
drawingFrame.ExportResolution = 0 
drawingFrame.SaveMode = TXTextControl.ImageSaveMode.Auto ' here, the SaveMode is set

textControl1.Drawings.Add(drawingFrame, -1)