Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
List all the .Text properties of all controls of an asse
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00930366
Message ID:
00930690
Vues:
16
Eric,
Type ObjectType;
	
foreach (object objObject in this.components.Components)
{
   ObjectType = objObject.GetType();
   PropertyInfo[] ObjectProps = ObjectType.GetProperties(BindingFlags.Public | BindingFlags.Instance);

   foreach(PropertyInfo prop in ObjectProps)
   {
      lstProperties.Items.Add(ObjectType.FullName + " - " + prop.Name);
   }
}
Regards
Neil
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform