combit List & Label 25 - .NET Online Web Help
Add Method (DesignerLanguages)
Example 


combit.ListLabel25 Namespace > DesignerLanguages Class : Add Method
LCID (Locale ID) of the language to be added. The locale ID passed with the first call will be considered as the base language. The LCID is used as "Dictionary Key" for the corresponding dictionaries (see example in ListLabelDictionary Class).
Add a design language to be able to localize reports in the Designer.
Syntax
'Declaration
 
Public Sub Add( _
   ByVal LCID As Integer _
) 
public void Add( 
   int LCID
)
public:
void Add( 
   int LCID
) 

Parameters

LCID
LCID (Locale ID) of the language to be added. The locale ID passed with the first call will be considered as the base language. The LCID is used as "Dictionary Key" for the corresponding dictionaries (see example in ListLabelDictionary Class).
Example
Below the three languages German, English and French are added as a design language to the Designer.
// Define LCIDs
int designerLanguageLCIDde = new CultureInfo("de").LCID;
int designerLanguageLCIDen = new CultureInfo("en").LCID;
int designerLanguageLCIDfr = new CultureInfo("fr").LCID;

// Add/declare the available design languages in the Designer
// according to their respective LCID
LL.DesignerWorkspace.DesignerLanguages.Add(designerLanguageLCIDde);
LL.DesignerWorkspace.DesignerLanguages.Add(designerLanguageLCIDen);
LL.DesignerWorkspace.DesignerLanguages.Add(designerLanguageLCIDfr);
' Define LCIDs
Dim designerLanguageLCIDde As Integer = New CultureInfo("de").LCID
Dim designerLanguageLCIDen As Integer = New CultureInfo("en").LCID
Dim designerLanguageLCIDfr As Integer = New CultureInfo("fr").LCID

' Add/declare the available design languages in the Designer
' according to their respective LCID
LL.DesignerWorkspace.DesignerLanguages.Add(designerLanguageLCIDde)
LL.DesignerWorkspace.DesignerLanguages.Add(designerLanguageLCIDen)
LL.DesignerWorkspace.DesignerLanguages.Add(designerLanguageLCIDfr)
Requirements

Platforms: Windows 7 SP1 - Windows 10 Version 1909, Windows Server 2008 R2 - 2019

See Also

Reference

DesignerLanguages Class
DesignerLanguages Members