ToolboxComponentsCreatingEventArgs Classe
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Fornisce i dati per l'evento ComponentsCreating che si verifica quando vengono aggiunti componenti alla casella degli strumenti.
public ref class ToolboxComponentsCreatingEventArgs : EventArgs
public class ToolboxComponentsCreatingEventArgs : EventArgs
type ToolboxComponentsCreatingEventArgs = class
inherit EventArgs
Public Class ToolboxComponentsCreatingEventArgs
Inherits EventArgs
- Ereditarietà
Il metodo di esempio seguente restituisce un ToolboxComponentsCreatingEventArgs oggetto che indica l'host della finestra di progettazione che sta per ricevere un nuovo componente o un set di componenti:
ToolboxComponentsCreatingEventArgs^ CreateToolboxComponentsCreatingEventArgs( System::ComponentModel::Design::IDesignerHost^ host )
{
ToolboxComponentsCreatingEventArgs^ e = gcnew ToolboxComponentsCreatingEventArgs( host );
// The designer host of the document receiving the components e.DesignerHost
return e;
}
public ToolboxComponentsCreatingEventArgs CreateToolboxComponentsCreatingEventArgs(System.ComponentModel.Design.IDesignerHost host)
{
ToolboxComponentsCreatingEventArgs e = new ToolboxComponentsCreatingEventArgs(host);
// The designer host of the document receiving the components e.DesignerHost
return e;
}
Public Function CreateToolboxComponentsCreatingEventArgs(ByVal host As System.ComponentModel.Design.IDesignerHost) As ToolboxComponentsCreatingEventArgs
Dim e As New ToolboxComponentsCreatingEventArgs(host)
' The designer host of the document receiving the components e.DesignerHost
Return e
End Function
L'evento ComponentsCreating viene generato quando i componenti stanno per essere aggiunti alla casella degli strumenti. ToolboxComponentsCreatingEventArgs fornisce dati che indicano la finestra di progettazione che ha richiesto l'aggiunta dei componenti.
Toolbox |
Inizializza una nuova istanza della classe ToolboxComponentsCreatingEventArgs. |
Designer |
Ottiene o imposta un'istanza dell'oggetto IDesignerHost che ha effettuato la richiesta di creazione dei componenti della casella degli strumenti. |
Equals(Object) |
Determina se l'oggetto specificato è uguale all'oggetto corrente. (Ereditato da Object) |
Get |
Funge da funzione hash predefinita. (Ereditato da Object) |
Get |
Ottiene l'oggetto Type dell'istanza corrente. (Ereditato da Object) |
Memberwise |
Crea una copia superficiale dell'oggetto Object corrente. (Ereditato da Object) |
To |
Restituisce una stringa che rappresenta l'oggetto corrente. (Ereditato da Object) |
Prodotto | Versioni |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
Feedback su .NET
.NET è un progetto open source. Seleziona un collegamento per fornire feedback: