Gets or sets the format used, if a drawing's bitmap image is exported. This is the number of the filter in the string returned through the ImageCollection.ExportFilters property, beginning with number one. A value of zero indicates that no export format has currently be specified for the drawing. In this case the drawing's image is saved in Windows Bitmap format. The technical article Loading and Saving Images lists the currently possible values for this property.

Syntax

public int ExportFilterIndex { get; set; }
Public Property ExportFilterIndex() As Integer

Examples

The following example shows how to use the TXTextControl.DataVisualization.DrawingFrame.ExportFilterIndex property. Here, it is set to 0. Remember, this indicates that no export format has been specified and the drawing´s image is saved in the Windows Bitmap format.

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; // here, the ExportFilterIndex is set
drawingFrame.ExportResolution = 100;
drawingFrame.SaveMode = TXTextControl.ImageSaveMode.Auto;

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 ' here, the ExportFilterIndex is set
drawingFrame.ExportResolution = 100
drawingFrame.SaveMode = TXTextControl.ImageSaveMode.Auto

textControl1.Drawings.Add(drawingFrame, -1)