DesignerEventArgs DesignerEventArgs DesignerEventArgs DesignerEventArgs Class

Определение

Предоставляет данные для событий DesignerCreated и DesignerDisposed.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
Наследование
DesignerEventArgsDesignerEventArgsDesignerEventArgsDesignerEventArgs

Примеры

В следующем примере демонстрируется создание DesignerEventArgs.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

Комментарии

События DesignerCreated иDesignerDisposed вызываются при создании или удалении документа.The DesignerCreated and DesignerDisposed events are raised when a document is created or disposed of.

Конструкторы

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

Инициализирует новый экземпляр класса DesignerEventArgs.Initializes a new instance of the DesignerEventArgs class.

Свойства

Designer Designer Designer Designer

Возвращает хост документа.Gets the host of the document.

Методы

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()

Возвращает объект Type для текущего экземпляра.Gets the Type of the current instance.

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

Создает неполную копию текущего объекта Object.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)

Применяется к

Дополнительно