Example #1
0
 /// <summary>
 /// 设置标牌内容
 /// </summary>
 /// <param name="attributeName">属性名称</param>
 /// <param name="value">值</param>
 /// <param name="index">属性顺序索引</param>
 public void SetBiaoPaiContent(string attributeName, string value, int index = -1)
 {
     try
     {
         if (string.IsNullOrEmpty(attributeName))
         {
             throw new Exception("属性不能为空");
         }
         mapControl.SetLayerMoveObjPropVisInBp(_belongLayer.LayerName, attributeName, index, 1);
         mapControl.setMoveObjectProperty(moveObj, attributeName, value);
     }
     catch (Exception e)
     {
         throw new Exception(e.Message);
     }
 }