为什么某些属性隐藏在intellisense中? [英] Why are some properties hidden in intellisense?

查看:78
本文介绍了为什么某些属性隐藏在intellisense中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到`OwningColumn`不在`DataGridView.CurrentCell的属性的intellisense列表中。虽然它工作正常。还有另一个我现在想不到的但基本上我想知道,



A.)为什么有隐藏的属性



B.)我有没有全部显示



我尝试过:



查看选项,Google。

I have noticed that `OwningColumn` is not in the intellisense list of properties for `DataGridView.CurrentCell.` although it works fine. There was also another i can't think of right now but basically i would like to know,

A.) Why are there hidden properties

B.) Is there away for me to 'Show all'

What I have tried:

Looking through options, Google.

推荐答案

我怀疑你的VS版本有变得困惑 - 它不时发生在我身上 - 我的版本显示了intellisense中myDataGridView实例的CurrentCell属性没有问题。



尝试关闭VS并重新启动它 - 很有可能会把它带回来。

对不起,我的意思是`OwningColumn`不显示为CurrentCell的属性,但它是一个

我刚试过:

I'd suspect that your version of VS has become confused - it happens from time to time with me as well - my version is showing the CurrentCell property of the myDataGridView instance in intellisense with no problems.

Try shutting down VS and restarting it - chances are that will bring it back.
"Sorry what i mean is `OwningColumn` doesn't show as a property for CurrentCell yet it is one"
I just tried:
Private Sub myButton_Click(sender As Object, e As EventArgs) Handles myButton.Click
    If myDataGridView.CurrentCell.OwningColumn.Name = "hello" Then
        MessageBox("Yep!")
    End If
    If myDataGridView.
End Sub

它是:

And it was:

Type "If", space, "myD" dot "Cu" dot "Ow" dot "N" space

每个术语出现在intellisense中并在我输入时自动完成。



这与VS社区2013相同,在测试WinForms VB应用程序。

那么有什么不同?

With each term appearing in intellisense and autocompleting as I type.

That's with VS Community 2013, on a test WinForms VB app.
So what is different?


Quote:

OriginalGriff



啊!这是2017年的一个错误:

https://developercommunity.visualstudio.com/content/problem/48556/vs-2017-vb-the-intellisense-for-the-datagridview-c.html

除了等待MS修复它之外你不能做很多事情。

OriginalGriff

Ah! It's a bug in 2017:
https://developercommunity.visualstudio.com/content/problem/48556/vs-2017-vb-the-intellisense-for-the-datagridview-c.html
Not a lot you can do, except wait for MS to fix it.


这篇关于为什么某些属性隐藏在intellisense中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆