C#代码段

            IMxDocument mxDocument = m_application.Document as IMxDocument;
            IContentsView contentsView = mxDocument.CurrentContentsView;
            object selectedItem = contentsView.SelectedItem;
            if (selectedItem is IFeatureLayer)
                topology.InFeatureLayer = selectedItem as IFeatureLayer;
            else
            {
                new AlertWindow("未选择待检查图层或者选择了多个图层!", false).Show();
                return;
            }

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-25
  • 2021-10-04
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-21
相关资源
相似解决方案