Recognition of Attribute commonly used in Composite Control Development

Source: Internet
Author: User
BrowsableAttribute: Indicates whether a property or event should be displayed in the property browser.
CategoryAttribute: Describes the category of an attribute or event. When a category is used, the property browser groups attributes by category.
DescriptionAttribute: When you select an attribute in the property browser, the text specified in the description will be displayed below the property browser to display the attribute function to the user.
BindableAttribute: Describes whether an attribute tends to be bound.
DefaultPropertyAttribute: Specify a default attribute for the component. When you select a control on the Form Designer, the default attribute will be selected in the property browser.
DefaultValueAttribute: Set a default value for a simple type property.
EditorAttribute: Specify a Special Editor for the attribute.
LocalizableAttribute: Indicates whether an Attribute can be localized. Any Attribute with this Attribute will be persistently stored in the resource file.
DesignerSerializationVisibilityAttribute: Indicates whether or how a property is persisted into the code.
TypeConverterAttribute: Specifies a type converter for the attribute. The type converter can convert the attribute value to another data type.
DefaultEventAttribute: Specify a default event for the component. When you select a control in form design, this event is selected in the property browser.

[Policyparentproperty (true)] // The subattribute is changed to notify the parent attribute.

BrowsableAttribute: whether the attribute is visible in the Property Window.
CategoryAttribute: the group to which the Property or Event belongs.
DescriptionAttribute: Brief description of Property or Event.
DefaultEventAttribute: Default Event ,.
DefaultPropertyAttribute: Default Property. The selected component is selected by default in the Property Window.
DefaultValueAttribute: default value of Property. The selected component is selected by default in the Event window.


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: info-contact@alibabacloud.com 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.