var mv = MapView.Active;
var lyrs = mv.Map.Layers;
var sb = new StringBuilder();
foreach (var lyr in lyrs)
{
sb.AppendLine(lyr.Name);
}
MessageBox.Show(sb.ToString());
删除所有图层
标签:lyrs,lyr,Pro,var,ArcGIS,mv,二次开发,sb,图层
来源: https://www.cnblogs.com/gisoracle/p/12462829.html