TX Text Control .NET for Windows Forms

ExportFileName Property

Property|Introduced in 18.0
Namespace
TXTextControl.DataVisualization
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets or sets the file name, when the chart's image is exported. An empty string indicates that no export filename has currently be specified for the chart's image. In this case a constructed filename is used. A filename is constructed in the following form: <document_filename>_<number>.<extension>. The technical article Loading and Saving Images describes where newly created image files are stored.

Syntax

public string ExportFileName { get; set; }

Examples

The following example uses ChartFrame.ExportFileName to choose where the chart frame is exported. The change is then applied to the active document or user interface.

chartFrame.ExportFileName = "document.docx";
chartFrame.Refresh();