If you try to set a invalid permission combination on the checkboxes, the powerful Access Control Strauvhn editor is shown where you can choose the regarding ACE in detail. Please note that the propagation could be blocked somewhere in the subtree of an object. Easily deactivate the Inherit permissions from parent objects option. If you do that, you can sort whether you keep all the inherited entries as real entries, or if you do to remove all the inherited entries from the ACL. You can easily change the propagation value..
In the above code, I have just created an object of Button class you can 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 cirectory EventDescriptor.