System.ComponentModel.TypeDescriptor.GetEvents C# (CSharp) Method

GetEvents() public static method

Gets a collection of events for a specified component.
public static GetEvents ( object component ) : EventDescriptorCollection
component object
return EventDescriptorCollection
        public static EventDescriptorCollection GetEvents(object component)
        {
            return GetEvents(component, null, false);
        }

Same methods

TypeDescriptor::GetEvents ( Type componentType ) : EventDescriptorCollection
TypeDescriptor::GetEvents ( Type componentType, Attribute attributes ) : EventDescriptorCollection
TypeDescriptor::GetEvents ( object component, Attribute attributes ) : EventDescriptorCollection
TypeDescriptor::GetEvents ( object component, Attribute attributes, bool noCustomTypeDesc ) : EventDescriptorCollection
TypeDescriptor::GetEvents ( object component, bool noCustomTypeDesc ) : EventDescriptorCollection

Usage Example

Example #1
0
 public EventDescriptorCollection GetEvents(Attribute[] attributes) => NativeTypeDesc.GetEvents(attributes, true);
All Usage Examples Of System.ComponentModel.TypeDescriptor::GetEvents