Uredi

Deli z drugimi prek


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
DesignerEventArgs

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)

Initializes a new instance of the DesignerEventArgs class.

Properties

Designer

Gets the host of the document.

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