C# Class RevitLookup.Snoop.Forms.GenericPropGrid

This Form makes use of the built-in abilities of Reflection and the PropertyGrid class to automatically list out the data of an object. Because we don't have much control, it will get output in the order that it chooses (or alphabetical) and most of the items will appear as Greyed-out, read-only items. But, we don't have to go write a SnoopCollector for every item in the .NET system.
Inheritance: System.Windows.Forms.Form
Show file Open project: jeremytammik/RevitLookup Class Usage Examples

Public Methods

Method Description
GenericPropGrid ( object obj ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

OnMenuContextPopup ( object sender, System e ) : void

disable any menu options if there is no current item selected in the PropGrid

OnShowClassInfo ( object sender, System e ) : void

User chose "Show Class Info..." from the context menu. Allow them to browse using Reflection for the class of the sub-object selected.

OnShowObjInfo ( object sender, System e ) : void

User chose "Show Object Info..." from the context menu. Allow them to browse using Reflection for the sub-object selected.

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool
return void

GenericPropGrid() public method

public GenericPropGrid ( object obj ) : System
obj object
return System