简体   繁体   English

在VB.Net中以编程方式关闭字段

[英]Turn off field programmatically in VB.Net

I'm creating an addin button in Arcmap via VB.net that when clicked, runs the identify tool. 我正在通过VB.net在Arcmap中创建一个插件按钮,单击该按钮可运行识别工具。 But I want only selected fields to appear in the identify dialog. 但是我只希望选定的字段显示在标识对话框中。 I thought of hiding the unnecessary fields and then showing them again after the button is used. 我想到了隐藏不必要的字段,然后在使用按钮后再次显示它们。

Does anyone know how to programmatically turn off/on field? 有谁知道如何以编程方式关闭/打开场?

you have to iterate the fields in layer and then set visible property into false . 您必须迭代图层中的字段,然后将visible属性设置为false。 see this link in 看到此链接

gis.stackExchange gis.stackExchange

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM