Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​ComponentModel.​EventDescriptor
Assembly: System.ComponentModel.TypeConverter
Inheritance: object → MemberDescriptor → EventDescriptor
Provides information about an event.
Properties
public
Type
ComponentType
When overridden in a derived class, gets the type of component this event is bound to.
public
Type
EventType
When overridden in a derived class, gets the type of delegate for the event.
public
bool
IsMulticast
When overridden in a derived class, gets a value indicating whether the event delegate is a multicast delegate.
protected
Attribute[]
AttributeArray
Gets or sets an array of attributes.
public
AttributeCollection
Attributes
Gets the collection of attributes for this member.
public
string
Category
Gets the name of the category to which the member belongs, as specified in the <see cref="T:System.ComponentModel.CategoryAttribute" /> .
public
string
Description
Gets the description of the member, as specified in the <see cref="T:System.ComponentModel.DescriptionAttribute" /> .
public
bool
DesignTimeOnly
Gets whether this member should be set only at design time, as specified in the <see cref="T:System.ComponentModel.DesignOnlyAttribute" /> .
public
string
DisplayName
Gets the name that can be displayed in a window, such as a Properties window.
public
bool
IsBrowsable
Gets a value indicating whether the member is browsable, as specified in the <see cref="T:System.ComponentModel.BrowsableAttribute" /> .
public
string
Name
Gets the name of the member.
protected
int
NameHashCode
Gets the hash code for the name of the member, as specified in <see cref="M:System.String.GetHashCode" /> .
Methods
public
void
AddEventHandler​(object component,
delegate value)
When overridden in a derived class, binds the event to the component.
component
A component that provides events to the delegate.
value
A delegate that represents the method that handles the event.
public
void
RemoveEventHandler​(object component,
delegate value)
When overridden in a derived class, unbinds the delegate from the component so that the delegate will no longer receive events from the component.
component
The component that the delegate is bound to.
value
The delegate to unbind from the component.
protected
AttributeCollection
CreateAttributeCollection​()
Inherited from MemberDescriptor
Creates a collection of attributes using the array of attributes passed to the constructor.
Returns A new <see cref="T:System.ComponentModel.AttributeCollection" /> that contains the <see cref="P:System.ComponentModel.MemberDescriptor.AttributeArray" /> attributes.
public
bool
Equals​(object obj)
Inherited from MemberDescriptor
Compares this instance to the given object to see if they are equivalent.
Returns <see langword="true" /> if equivalent; otherwise, <see langword="false" /> .
obj
The object to compare to the current instance.
protected
void
FillAttributes​(Collections.​IList attributeList)
Inherited from MemberDescriptor
When overridden in a derived class, adds the attributes of the inheriting class to the specified list of attributes in the parent class.
attributeList
An <see cref="T:System.Collections.IList" /> that lists the attributes in the parent class. Initially, this is empty.
public
int
GetHashCode​()
Inherited from MemberDescriptor
Returns the hash code for this instance.
Returns A hash code for the current <see cref="T:System.ComponentModel.MemberDescriptor" /> .
protected
object
GetInvocationTarget​(Type type,
object instance)
Inherited from MemberDescriptor
Retrieves the object that should be used during invocation of members.
Returns The object to be used during member invocations.
type
The <see cref="T:System.Type" /> of the invocation target.
instance
The potential invocation target.
protected
void
Finalize​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object