zoukankan      html  css  js  c++  java
  • EPLAN API 入门系列 提高篇(How to get PropertyValue?)

    How to get PropertyValue?

     1         MultiLangString strValue = (MultiLangString)object.GetPropertyValue(object.Properties[j].Id);
     2         string strDesignation = object.Properties[j].Designation;
     3         string sPropertyFullName = strDesignation + ":" + _pCERICommon.GetMulValue(strValue);
     4 
     5         public string GetMulValue(MultiLangString oMultiLangString)
     6         {
     9             string sLang = "zh_CN";
    10 
    11             Eplan.EplApi.Base.ISOCode l = new Eplan.EplApi.Base.ISOCode(sLang);
    12             Eplan.EplApi.Base.ISOCode.Language m_lang = l.GetNumber();
    13             string sValue = oMultiLangString.GetString(m_lang);
    14             if (sValue.Trim() == "")
    15             {
    16                 sLang = "??_??";        
    17 l = new Eplan.EplApi.Base.ISOCode(sLang); 18 m_lang = l.GetNumber(); 19 20 sValue = oMultiLangString.GetString(m_lang); 21 } 22 23 return sValue; 24 }


     

  • 相关阅读:
    魔改版BBR
    termux 开启 sshd
    Basic berkeley socket functions
    mosh
    XOR 加密
    指定so动态链接库连接器
    UTF8 UTF16 之间的互相转换
    MySQL C API概述
    C JAVA你可能不知道的那些编程细节
    虚拟内存
  • 原文地址:https://www.cnblogs.com/AriLee/p/2869975.html
Copyright © 2011-2022 走看看