InstanceCreationEditor 類別
定義
從 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
- 繼承
-
InstanceCreationEditor
備註
通常, 所指定Text的文字會顯示在下拉式方塊PropertyGrid中, 做為連結或按鈕。Usually, the text specified by Text is displayed on the drop-down box from the PropertyGrid as a link or button. 當您按一下時CreateInstance , 會Type使用要建立之物件的來呼叫方法。When clicked, the CreateInstance method is called with the Type of the object to create.
建構函式
InstanceCreationEditor() |
初始化 InstanceCreationEditor 類別的新執行個體。Initializes a new instance of the InstanceCreationEditor class. |
屬性
Text |
取得指定的文字。Gets the specified text. |
方法
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. (繼承來源 Object) |
GetHashCode() |
作為預設雜湊函數。Serves as the default hash function. (繼承來源 Object) |
GetType() |
取得目前執行個體的 Type。Gets the Type of the current instance. (繼承來源 Object) |
MemberwiseClone() |
建立目前 Object 的淺層複製。Creates a shallow copy of the current Object. (繼承來源 Object) |
ToString() |
傳回代表目前物件的字串。Returns a string that represents the current object. (繼承來源 Object) |