Eplan Platform API
Eplan.EplApi.MasterData Namespace / MDTranslationDatabase Class
Members Example

In This Topic
    MDTranslationDatabase Class
    In This Topic
    Represents translation database.
    Inheritance Hierarchy

    System.Object
       Eplan.EplApi.MasterData.MDTranslationDatabase

    Syntax
    public class MDTranslationDatabase 
    public ref class MDTranslationDatabase 
    Example
    Following example shows how to use TranslationDatabase class.
    private static bool ReplaceText(string strSearchedText, ISOCode.Language eSearchedLang, string strTextToChange, ISOCode.Language eLangToChange)
    {
        bool bRetVal;
        MDTranslationDatabase oTrDB = new MDTranslationDatabase();
        oTrDB.Open(false);
    
        MultiLangString oMLS = new MultiLangString();
        oMLS.AddString(eSearchedLang, strSearchedText);
        string strComment = "";
    
        bRetVal = oTrDB.FindKeyword(eSearchedLang, ref oMLS, ref strComment);
        if (bRetVal)
        {
            oMLS.DeleteString(eLangToChange);
            oMLS.AddString(eLangToChange, strTextToChange);
    
            LanguageList lstLangs = new LanguageList();
            lstLangs.Add(eLangToChange);
    
            bRetVal = oTrDB.EditKeyword(strSearchedText, eSearchedLang, oMLS, lstLangs);
        }
        oTrDB.Close();
        return bRetVal;
    }
    
    
    Public Constructors
     NameDescription
    Public ConstructorConstructor  
    Top
    Public Properties
     NameDescription
    Public PropertyReturns true if database is open.  
    Public PropertyReturns true if database is opened in readonly mode.  
    Public PropertyReturs the list of translation database languages.  
    Top
    Public Methods
     NameDescription
    Public MethodOverloaded. Adds keywords with texts in specified languages to the translation database.  
    Public MethodAdds new translation database language.  
    Public MethodCloses database.  
    Public MethodDeletes keyword.  
    Public MethodDeletes translation database language.  
    Public MethodDestructor for deterministic finalization of TranslationDatabase object.  
    Public MethodOverloaded. Edits keyword  
    Public MethodFinds all keywords selected by the searched text in given language.  
    Public MethodFinds keyword.  
    Public MethodOpens translation database using user settings.  
    Public MethodOpens translation database in exlusive mode (.mdb only).  
    Top
    See Also