wx.Globalization.TypeNameTranslationsAttribute Class Reference

List of all members.

Public Member Functions

 TypeNameTranslationsAttribute (string neutralName, params string[] sequenceOfLocaleTranslationPairs)
 TypeNameTranslationsAttribute (StringInCultures name)

Properties

StringInCultures Name [get]


Detailed Description

Use this attribute to provide translations of a class or type name using reflection. These names will for instance be used by wx.Object._(Type).

Constructor & Destructor Documentation

wx.Globalization.TypeNameTranslationsAttribute.TypeNameTranslationsAttribute ( StringInCultures  name  ) 

Argument is the name of the type in neutral representation and arbitrary translations.

wx.Globalization.TypeNameTranslationsAttribute.TypeNameTranslationsAttribute ( string  neutralName,
params string[]  sequenceOfLocaleTranslationPairs 
)

Creates an instance comprising several translations.

Parameters:
neutralName is the name in the neutral locale.
sequenceOfLocaleTranslationPairs is a sequence of an even number of strings. The first is the canonical name, the second is the translation of original into the locale according to the first string. The third is the canonical name, the forth is the translation of original into the locale according to the third string, and so on.
Example:
         [TypeNameTranslationsAttribute("Employee", "de", "Mitarbeiter")]
         class EmployeeDate
         {
            ...
         }


Property Documentation

StringInCultures wx.Globalization.TypeNameTranslationsAttribute.Name [get]

Readonly access to the human readable name of the class or type and its translations.


Manual of the wx.NET   (c) 2003-2011 the wx.NET project at   Get wx.NET at SourceForge.net. Fast, secure and Free Open Source software downloads