Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do you get property descriptions?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01232061
Message ID:
01232338
Vues:
15
>Fred,
>
>>How do you get custom property descriptions to show up in the property sheet during development?
>
>You need to adorn the property with the Description attribute. For example:
>
>
[Category("Data"),
>Description("Specifies if the control is automatically bound."),
>DefaultValue(true)]
>public virtual bool BindingFlag
>{
>	get	{ return _bindingFlag; }
>	set	{ _bindingFlag = value;}
>}
>private bool _bindingFlag = true;
>
>I have included a few other commonly used design-time attributes.
>
>
  • Category - specifies the category in which the property appears when the property window is sorted by category. This can be one of the existing categories, or your own custom category
    >
  • DefaultValue - specifies he default value of the property

>
>Best Regards,

I spoke too soon. I STILL don't see anything in the property sheet. I don't even see the property itself on the "base" class, but I do see the property in a subclass, just no description. I must be missing something pretty basic.

[update]
Yep, it was pretty basic. I didn't have it before the public declaration. I do my private declaration, then the public with the get/set. I had the attribute before the private.

Thanks again.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform