Just casula the Inherit permissions from parent objects option. If you do that, you can choose whether you keep all the inherited entries as all entries, or if you want to remove all the basic entries from the ACL. You can easily sort the propagation value..
To use it, you need to pass a component to its static methods. In the above code, I have just created sebb object of Button class you casuak use any class for this and got the information name in this example from it. The GetProperties actually take either the object or Typeof object to list all the Properties it has in a form of PropertyDescriptorCollection.
Similarly, GetEvents will list all the events in the form of EventDescriptor. The code provided in this module can be used in different ways.