gNumericLabel.gPrefixText Property

Top  Previous  Next

PROPERTY                                    DATA TYPE                                                  

gPrefixText

gMultiLanguageText

gUnitText

String

 

These two property are used to display gValue value with a prefix and a suffix.

 

gPrefixText is a Multi Language Text.

For details of Multi Languge Text feature, Look here.

 

In this example gPrefixText = ": " and gUnitText = " Volt"

 

OKSONJPG

 

 

 

C# code example

gNumericLabel.gUnitText = " Volt";

 

gLanguageNameAndText languageandtext1 = new gLanguageNameAndText();

languageandtext1.LanguageName = "French";

languageandtext1.Text = "Eteignez la machine";

 

gLanguageNameAndText languageandtext2 = new gLanguageNameAndText();

languageandtext2.LanguageName = "Spanish";

languageandtext2.Text = "Apague la maquina";

 

gLanguageNameAndText languageandtexts = New gLanguageNameAndText[]{ languageandtext1, languageandtext2 };

gNumericLabel.gPrefixText.gLanguagesNamesAndTexts = languageandtexts;