Namespace: GlobFX.SwiffChartGenerator
Assembly: GlobFX.SwiffChartGenerator (in GlobFX.SwiffChartGenerator.dll)

Specifies whether imported data from text file should be treated as unicode (UTF-16).

Visual Basic
Public Sub SetUnicode( unicode As Boolean )
C#
public void SetUnicode( bool unicode );

Arguments

unicode
A boolean value.

True : imported text file is treated as unicode (UTF-16).
False : imported text file is treated as ASCII.

Remarks

The method SetUnicode should be used in conjunction with the SetDataFromTxtFile method. It actually specifies whether the text file to import via the method SetDataFromTxtFile should be treated as unicode or ASCII.

If you call the SetDataFromTxtFile method without previously calling the SetUnicode method, the text file to import will be treated as an ASCII text file.

Sample Code

The following code illustrates use of the SetUnicode method.

Visual Basic
' Import the data from an unicode text file
chart.SetUnicode( True )
chart.SetDataFromTxtFile( "C:\\myUnicodeDataFile.txt" )

' Set the graphics settings from a style file
chart.LoadStyle( "C:\\myStyle.scs" )
C#
// Import the data from an unicode text file
chart.SetUnicode(true);
chart.SetDataFromTxtFile("C:\\myUnicodeDataFile.txt");

// Set the graphics settings from a style file
chart.LoadStyle("C:\\myStyle.scs");

See Also

SetDataFromTxtFile Method | SetSeparators Method

Applies To: Chart Object