gButton.gText Property

Top  Previous  Next

PROPERTY                                               DATA TYPE                    




Defines Multi language text associated with the control.

gButton should be in Value mode. (gValueOrBit = Value)



For details of Multi Languge Text feature, Look here.


Property editor

 multi lang text editor

Languages are defined in a configuration file, not a constant list.


C# code example

//Note that normally you do not write code for this property. You just set through property editor in design time.

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 };

gButton.gText.gLanguagesNamesAndTexts = languageandtexts;