Attribute attributes related to ide (C #)

Source: Internet
Author: User

Description attribute

When you select this attribute or event, the description of the attribute or event is displayed below the Attribute Table.


[Description ("the text to display.")] Public String text {......}


The category attribute classifies attributes or events. When the Attribute Table is displayed in classification mode, the attribute is used as the classification basis. Example:

[Category ("layout")] Public String text {......}

Browsable attribute controls whether a property or event is displayed in the Attribute Table. Example:

[Browsable (false)] Public String novisible

The editorbrowsable attribute controls whether a property or event is displayed in the intelliisense window, and the table B-1 is a possible value. Never does not show always show advanced only show in advanced user mode, advanced mode can use tools | options | text editor |C #Open


[Editorbrowsable (editorbrowsablestate. Never)] Public String text


Defaultevent attribute specifies the default event. When you double-click a widget or widget, the editor creates this event function. Example:

[Defaultevent ("click")] public class mybutton

Defaultproperty attribute specifies the default attribute example:

[Defaultproperty ("text")] public class mybutton

Readonly attribute specifies whether the attribute is read-only. Example:

[Readonly (true)] public int myproperty

Bindable attribute specifies whether the attribute supports data binding. Example:

[Bindable (true)] public int myproperty
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.