XY Chart NET 3 Control Reference
Language Property

Use this property to return/set a value that determines the language locale ID for the chart control.  The language ID determines the set of translations to use when displaying the user interfaces for the Annotations feature.  All translations are contained in file XYNLangTableUE.xml, which may be editted by the user.  In addition, new languages may be added by the user.

Syntax
[Visual Basic]
Property Language() As Integer
[C#]
int XYChartNETCtl.Language
[C++]
property int XYChartNet::XYChartNETCtl::Language
       
Default Value
1033 (en-us)
Example

This example shows how to add a new language (Portuguese, ID=2070) to the translations file, XYNLangTableUE.xml, and how to set the Language property to use this new language ID.

First, edit XYNLangTableUE.xml:

Next, set the Language for the chart control:

' XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.

Dim tmpLanguage As Integer
tmpLanguage = XYChartNETCtl1.Language   'Returns the chart's current language locale
XYChartNETCtl1.Language = 2070          'Sets the language locale to Portuguese
// XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.

int tmpLanguage;
tmpLanguage = XYChartNETCtl1.Language;  //Returns the chart's current language locale
XYChartNETCtl1.Language = 2070;         //Sets the language locale to Portuguese
// XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form.

int tmpLanguage;
tmpLanguage = XYChartNETCtl1->Language;  //Returns the chart's current language locale
XYChartNETCtl1->Language = 2070;         //Sets the language locale to Portuguese
See Also

 

 


© 2003 - 2013 ControlEng Corporation. All rights reserved.