InstanceCreationEditor Klasse
Definition
Erstellt eine Instanz eines bestimmten Eigenschaftentyps aus einem Dropdown-Listenfeld innerhalb von PropertyGrid.Creates an instance of a particular type of property from a drop-down box within the PropertyGrid.
public ref class InstanceCreationEditor abstract
public abstract class InstanceCreationEditor
type InstanceCreationEditor = class
Public MustInherit Class InstanceCreationEditor
- Vererbung
-
InstanceCreationEditor
Hinweise
Normalerweise wird der von Text angegebene Text im Dropdown Feld PropertyGrid von als Link oder Schaltfläche angezeigt.Usually, the text specified by Text is displayed on the drop-down box from the PropertyGrid as a link or button. Wenn Sie darauf klicken CreateInstance , wird die-Methode Type mit dem des-Objekts aufgerufen, das erstellt werden soll.When clicked, the CreateInstance method is called with the Type of the object to create.
Konstruktoren
InstanceCreationEditor() |
Initialisiert eine neue Instanz der InstanceCreationEditor-Klasse.Initializes a new instance of the InstanceCreationEditor class. |
Eigenschaften
Text |
Ruft den angegebenen Text ab.Gets the specified text. |
Methoden
CreateInstance(ITypeDescriptorContext, Type) |
Gibt beim Überschreiben in einer abgeleiteten Klasse eine Instanz des angegebenen Typs zurück.When overridden in a derived class, returns an instance of the specified type. |
Equals(Object) |
Ermittelt, ob das angegebene Objekt und das aktuelle Objekt gleich sind.Determines whether the specified object is equal to the current object. (Geerbt von Object) |
GetHashCode() |
Dient als die Standard-HashfunktionServes as the default hash function. (Geerbt von Object) |
GetType() |
Ruft den Type der aktuellen Instanz ab.Gets the Type of the current instance. (Geerbt von Object) |
MemberwiseClone() |
Erstellt eine flache Kopie des aktuellen Object.Creates a shallow copy of the current Object. (Geerbt von Object) |
ToString() |
Gibt eine Zeichenfolge zurück, die das aktuelle Objekt darstellt.Returns a string that represents the current object. (Geerbt von Object) |