Επεξεργασία

Κοινή χρήση μέσω


InstanceCreationEditor Class

Definition

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
Inheritance
InstanceCreationEditor

Remarks

Usually, the text specified by Text is displayed on the drop-down box from the PropertyGrid as a link or button. When clicked, the CreateInstance method is called with the Type of the object to create.

Constructors

InstanceCreationEditor()

Initializes a new instance of the InstanceCreationEditor class.

Properties

Text

Gets the specified text.

Methods

CreateInstance(ITypeDescriptorContext, Type)

When overridden in a derived class, returns an instance of the specified type.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to