Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subclassing a subclass
Message
De
06/10/2007 22:49:49
Alan Harris-Reid
Baseline Data Services
Devon, Royaume Uni
 
 
À
06/10/2007 19:53:10
Information générale
Forum:
ASP.NET
Catégorie:
Conception classe
Divers
Thread ID:
01256172
Message ID:
01259221
Vues:
14
Hi Bonnie,

>Do the same thing as you did for Font in your base class, override the Text property.
>
>
>	public override string Text
>	{
>		get { return base.Text; }
>		set { base.Text = "Edit"; }
>	}
>
That does the trick - many thanks. Does this mean that any property (color, font, text) that you want to see at design-time must be overriden at base.property level? Seems to defeat the object of inheritance to me.

Alan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform