Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
List all the .Text properties of all controls of an asse
Message
From
04/08/2004 12:42:30
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00930366
Message ID:
00930690
Views:
14
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
Previous
Reply
Map
View

Click here to load this message in the networking platform