Beispiel #1
0
 /// <summary>
 /// 将所有的FeatureLayer放入Hashtable
 /// </summary>
 /// <returns></returns>
 public static object GetAllFeatureLayer(IMap pMap, Type type)
 {
     if (type == typeof(Hashtable))
     {
         Hashtable ht = new Hashtable();
         PublicFunction.GetAllFeatureLayer(pMap, ht);
         return(ht);
     }
     else if (type == typeof(ArrayList))
     {
         ArrayList result = new ArrayList();
         PublicFunction.GetAllFeatureLayer(pMap, result);
         return(result);
     }
     else
     {
         MessageBox.Show("指定的类型不是ArrayList或Hashtable。");
         return(null);
     }
 }
Beispiel #2
0
 /// <summary>
 /// 选择集的颜色
 /// </summary>
 /// <returns></returns>
 public static IColor GetSelectionColor(int argb)
 {
     return(PublicFunction.FromMSColor(argb));
 }