当前位置: 动力学知识库 > 问答 > 编程问答 >

.net - What Namespace is the Default attribute for properties on UserControls?

问题描述:

I found half of the answer here to my question when searching "what is the attribute to set the default value of a User Control property in the designer where you change it and it bolds".

However the answer neglects to mention the namespace it is in.

Searching through Object Browser yields hundreds of classes/properties with the name Default in it. Google seems to bring up DefaultProperty attribute for ASP.NET, and the MSDN article neglects to mention this ability.

Since I can't find the answer on Google, MSDN, Visual Studio, and using VB.NET does not put the namespace it is in by default, I shall put forth the question.

What namespace is it in?

If it's in System.Windows.Forms, what assembly do I need to reference?

网友答案:

You're looking for System.ComponentModel.DefaultValueAttribute.

分享给朋友:
您可能感兴趣的文章:
随机阅读: