combit List & Label 29 - .NET Help
combit.Reporting 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 Localization of Project Files in Designer).

Example


In This Topic
    Add Method (DesignerLanguages)
    In This Topic
    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 Localization of Project Files in Designer).

    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 10 (Version 21H2 - 23H2), Windows 11 (21H2 - 22H2), Windows Server 2016 - 2022
    .NET: .NET Framework 4.8, .NET 6, .NET 7, .NET 8

    See Also