DesignerEventArgs DesignerEventArgs DesignerEventArgs DesignerEventArgs Class

Definition

Provides data for the DesignerCreated and DesignerDisposed events.

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

Examples

The following example demonstrates creating a DesignerEventArgs.

// This example method creates a DesignerEventArgs using the specified designer host.
// Typically, this type of event args is created by the IDesignerEventService.
DesignerEventArgs^ CreateComponentEventArgs( IDesignerHost^ host )
{
   DesignerEventArgs^ args = gcnew DesignerEventArgs( host );

   // The designer host of the created or disposed document:  args.Component

   return args;
}
// This example method creates a DesignerEventArgs using the specified designer host.
// Typically, this type of event args is created by the IDesignerEventService.  
public DesignerEventArgs CreateComponentEventArgs(IDesignerHost host)
{
    DesignerEventArgs args = new DesignerEventArgs(host);

    // The designer host of the created or disposed document:  args.Component

    return args;
}
' This example method creates a DesignerEventArgs using the specified designer host.
' Typically, this type of event args is created by the IDesignerEventService.  
Public Function CreateComponentEventArgs(ByVal host As IDesignerHost) As DesignerEventArgs

    Dim args As New DesignerEventArgs(host)

    ' The designer host of the created or disposed document:  args.Component

    Return args

End Function

Remarks

The DesignerCreated and DesignerDisposed events are raised when a document is created or disposed of.

Constructors

DesignerEventArgs(IDesignerHost) DesignerEventArgs(IDesignerHost) DesignerEventArgs(IDesignerHost) DesignerEventArgs(IDesignerHost)

Initializes a new instance of the DesignerEventArgs class.

Properties

Designer Designer Designer Designer

Gets the host of the document.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also