ActiveDesignerEventArgs Classe

Definizione

Fornisce i dati per l'evento ActiveDesigner.

public ref class ActiveDesignerEventArgs : EventArgs
public class ActiveDesignerEventArgs : EventArgs
type ActiveDesignerEventArgs = class
    inherit EventArgs
Public Class ActiveDesignerEventArgs
Inherits EventArgs
Ereditarietà
ActiveDesignerEventArgs

Esempio

Il metodo di esempio seguente restituisce un oggetto ActiveDesignerEventArgs contenente un riferimento specificato a per la IDesignerHost finestra di progettazione che perde lo stato attivo e un riferimento specificato a IDesignerHost per la finestra di progettazione che ottiene lo stato attivo.

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

Commenti

L'evento ActiveDesigner si verifica quando il documento attualmente attivo viene modificato. Il documento attivo viene modificato quando viene creato un nuovo documento, viene aperto un documento esistente o viene chiuso un documento.

Quando si crea un delegato di ActiveDesignerEventArgs, si identifica il metodo con cui gestire l'evento. Per associare l'evento al gestore eventi in uso, aggiungere all'evento un'istanza del delegato. Il gestore eventi viene chiamato ogni volta che si verifica l'evento, a meno che non venga rimosso il delegato. Per altre informazioni sui delegati del gestore eventi, vedere Gestione e generazione di eventi.

Costruttori

ActiveDesignerEventArgs(IDesignerHost, IDesignerHost)

Inizializza una nuova istanza della classe ActiveDesignerEventArgs.

Proprietà

NewDesigner

Ottiene il documento che sta per essere attivato.

OldDesigner

Ottiene il documento che sta per perdere l'attivazione.

Metodi

Equals(Object)

Determina se l'oggetto specificato è uguale all'oggetto corrente.

(Ereditato da Object)
GetHashCode()

Funge da funzione hash predefinita.

(Ereditato da Object)
GetType()

Ottiene l'oggetto Type dell'istanza corrente.

(Ereditato da Object)
MemberwiseClone()

Crea una copia superficiale dell'oggetto Object corrente.

(Ereditato da Object)
ToString()

Restituisce una stringa che rappresenta l'oggetto corrente.

(Ereditato da Object)

Si applica a

Vedi anche