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 }


     

  • 相关阅读:
    Oracle进程
    Oracle 内存管理
    oracle 数据文件管理
    Oracle表空间
    EM配置问题
    Oracle 常用命令
    Oracle体系结构
    Orcale 数据加载
    Oracle学习笔记(1)
    设计模式-23种参考模式
  • 原文地址:https://www.cnblogs.com/AriLee/p/2869975.html
Copyright © 2011-2022 走看看