ActiveDesignerEventArgs Classe

Definição

Fornece dados para o evento de ActiveDesigner .Provides data for the ActiveDesigner event.

public ref class ActiveDesignerEventArgs : EventArgs
public class ActiveDesignerEventArgs : EventArgs
type ActiveDesignerEventArgs = class
    inherit EventArgs
Public Class ActiveDesignerEventArgs
Inherits EventArgs
Herança
ActiveDesignerEventArgs

Exemplos

O método de exemplo a seguir retorna um ActiveDesignerEventArgs que contém uma referência especificada para o IDesignerHost para que o designer perca o foco e uma referência especificada para o IDesignerHost para que o designer obtenha foco.The following example method returns an ActiveDesignerEventArgs that contains a specified reference to the IDesignerHost for the designer losing focus and a specified reference to the IDesignerHost for the designer gaining focus.

ActiveDesignerEventArgs^ CreateActiveDesignerEventArgs( IDesignerHost^ losingFocus, IDesignerHost^ gainingFocus )
{
   ActiveDesignerEventArgs^ e = gcnew ActiveDesignerEventArgs( losingFocus, gainingFocus );
   return e;
}
public ActiveDesignerEventArgs CreateActiveDesignerEventArgs(IDesignerHost losingFocus, IDesignerHost gainingFocus)
{
    ActiveDesignerEventArgs e = new ActiveDesignerEventArgs(losingFocus, gainingFocus);
    return e;
}
Public Function CreateActiveDesignerEventArgs(ByVal losingFocus As IDesignerHost, ByVal gainingFocus As IDesignerHost) As ActiveDesignerEventArgs
    Dim e As New ActiveDesignerEventArgs(losingFocus, gainingFocus)
    Return e
End Function

Comentários

O ActiveDesigner evento ocorre quando o documento atualmente ativo é alterado.The ActiveDesigner event occurs when the currently active document changes. O documento ativo é alterado quando um novo documento é criado, um documento existente é aberto ou um documento é fechado.The active document changes when a new document is created, an existing document is opened, or a document is closed.

Ao criar um ActiveDesignerEventArgs delegado, você identifica o método que manipulará o evento.When you create an ActiveDesignerEventArgs delegate, you identify the method that will handle the event. Para associar o evento ao manipulador de eventos, adicione uma instância do delegado ao evento.To associate the event with your event handler, add an instance of the delegate to the event. O manipulador de eventos é chamado sempre que o evento ocorre, a menos que você remova o representante.The event handler is called whenever the event occurs, unless you remove the delegate. Para obter mais informações sobre delegados de manipulador de eventos, consulte manipulando e gerando eventos.For more information about event-handler delegates, see Handling and Raising Events.

Construtores

ActiveDesignerEventArgs(IDesignerHost, IDesignerHost)

Inicializa uma nova instância da classe ActiveDesignerEventArgs.Initializes a new instance of the ActiveDesignerEventArgs class.

Propriedades

NewDesigner

Obtém o documento que está ganhando a ativação.Gets the document that is gaining activation.

OldDesigner

Obtém o documento que está perdendo a ativação.Gets the document that is losing activation.

Métodos

Equals(Object)

Determina se o objeto especificado é igual ao objeto atual.Determines whether the specified object is equal to the current object.

(Herdado de Object)
GetHashCode()

Serve como a função de hash padrão.Serves as the default hash function.

(Herdado de Object)
GetType()

Obtém o Type da instância atual.Gets the Type of the current instance.

(Herdado de Object)
MemberwiseClone()

Cria uma cópia superficial do Object atual.Creates a shallow copy of the current Object.

(Herdado de Object)
ToString()

Retorna uma cadeia de caracteres que representa o objeto atual.Returns a string that represents the current object.

(Herdado de Object)

Aplica-se a

Confira também