Редагувати

Поділитися через


RefreshEventArgs Class

Definition

Provides data for the Refreshed event.

public ref class RefreshEventArgs : EventArgs
public class RefreshEventArgs : EventArgs
type RefreshEventArgs = class
    inherit EventArgs
Public Class RefreshEventArgs
Inherits EventArgs
Inheritance
RefreshEventArgs

Examples

For an example of the RefreshEventArgs class, see the sample code in the RefreshEventHandler delegate.

Remarks

Typically, component information does not change for the life of a process. During design time, however, you can change the component's properties or events. As a result, the component's information in TypeDescriptor becomes out-of-date, and a Refreshed event is raised. A Refreshed event is also raised when a Type is changed during design time.

A RefreshEventArgs object specifies the data associated with the Refreshed event; that is, the component and the type of component that changed.

The RefreshEventArgs class provides ComponentChanged and TypeChanged properties to get the component or type that raised the event.

Constructors

RefreshEventArgs(Object)

Initializes a new instance of the RefreshEventArgs class with the component that has changed.

RefreshEventArgs(Type)

Initializes a new instance of the RefreshEventArgs class with the type of component that has changed.

Properties

ComponentChanged

Gets the component that changed its properties, events, or extenders.

TypeChanged

Gets the Type that changed its properties or events.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also