Determines whether the image is stored through its data or through its file reference. By default an image is stored through a file reference if a file reference exists. Otherwise, if the image has been pasted from the clipboard, it is stored with its complete 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.

Examples

In this example the 'SaveMode' property is set to 'Auto' - which means that the image is saved as specified with the SaveSettings.ImageSaveMode property.

TXTextControl.Image myImage = new TXTextControl.Image();

myImage.Sizeable = false;
myImage.HorizontalScaling = 75;
myImage.VerticalScaling = 75;
myImage.ExportCompressionQuality = 100;
myImage.ExportFileName = "MyFileName.PNG";
myImage.ExportFilterIndex = 3;
myImage.ExportMaxResolution = 0;
myImage.FileName = "MySampleImage.png";
myImage.FilterIndex = 4;
myImage.SaveMode = TXTextControl.ImageSaveMode.Auto; // here, the 'SaveMode' is set

textControl1.Images.Add(myImage, -1);
Dim myImage As TXTextControl.Image = New TXTextControl.Image()

myImage.Sizeable = False
myImage.HorizontalScaling = 75
myImage.VerticalScaling = 75
myImage.ExportCompressionQuality = 100
myImage.ExportFileName = "MyFileName.PNG"
myImage.ExportFilterIndex = 3
myImage.ExportMaxResolution = 0
myImage.FileName = "MySampleImage.png"
myImage.FilterIndex = 4
myImage.SaveMode = TXTextControl.ImageSaveMode.Auto ' here, the 'SaveMode' is set

textControl1.Images.Add(myImage, -1)