Intersoft WebGrid Documentation
Language Property
See Also  Send Feedback
ISNet.WebUI.WebGrid Namespace > TextSettings Class : Language Property






Sets the language modes that users can use to internationalize WebGrid.

Syntax

Visual Basic (Declaration) 
<DefaultValueAttribute()>
<DescriptionAttribute()>
<ISNet.Serialization.BinarySerializableAttribute()>
<NotifyParentPropertyAttribute(True)>
<ISNet.Serialization.XmlSerializableAttribute()>
Public Property Language As LanguageMode
Visual Basic (Usage)Copy Code
Dim instance As TextSettings
Dim value As LanguageMode
 
instance.Language = value
 
value = instance.Language
C# 
[DefaultValueAttribute()]
[DescriptionAttribute()]
[ISNet.Serialization.BinarySerializableAttribute()]
[NotifyParentPropertyAttribute(true)]
[ISNet.Serialization.XmlSerializableAttribute()]
public LanguageMode Language {get; set;}
Delphi 
public read-write property Language: LanguageMode; 
JScript 
DefaultValueAttribute()
DescriptionAttribute()
ISNet.Serialization.BinarySerializableAttribute()
NotifyParentPropertyAttribute()
ISNet.Serialization.XmlSerializableAttribute()
public function get,set Language : LanguageMode
Managed Extensions for C++ 
[DefaultValueAttribute()]
[DescriptionAttribute()]
[ISNet.Serialization.BinarySerializableAttribute()]
[NotifyParentPropertyAttribute(true)]
[ISNet.Serialization.XmlSerializableAttribute()]
public: __property LanguageMode get_Language();
public: __property void set_Language( 
   LanguageMode value
);
C++/CLI 
[DefaultValueAttribute()]
[DescriptionAttribute()]
[ISNet.Serialization.BinarySerializableAttribute()]
[NotifyParentPropertyAttribute(true)]
[ISNet.Serialization.XmlSerializableAttribute()]
public:
property LanguageMode Language {
   LanguageMode get();
   void set (    LanguageMode value);
}

Remarks

There are three modes of language that users can set on TextSettings property:

  • UseDefault mode. The default language file will be used regardless of any settings. 
  • UseCulture mode. The control will pick the language based on the specified Culture in WebGrid level or in Thread level. When the language file can not be found, it will fallback to use default language file.
  • UseCustom mode. You will decide which language exactly that the WebGrid will use, regardless of any culture settings. If the language file can not be found, it will fallback to use default language file.

For mor information please read Localization Manager.

In WebGrid.NET Enterprise 5.0, you need to disable the SmartWebResources for localization on this scenarios:

  • You want to use modified version of the language file.
  • You want to use new language file that is not included in WebGrid package.

To disable the SmartWebResources simply set UseWebResources to False.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

©2012 Intersoft Solutions Corp. All Rights Reserved.