CustomTypeDescriptor 類別

定義

提供介面的簡單預設實作 ICustomTypeDescriptor

public ref class CustomTypeDescriptor abstract : System::ComponentModel::ICustomTypeDescriptor
public abstract class CustomTypeDescriptor : System.ComponentModel.ICustomTypeDescriptor
type CustomTypeDescriptor = class
    interface ICustomTypeDescriptor
Public MustInherit Class CustomTypeDescriptor
Implements ICustomTypeDescriptor
繼承
CustomTypeDescriptor
衍生
實作

備註

TypeDescriptionProvider,這個 CustomTypeDescriptor 類別依賴建構過程中提供的父 ICustomTypeDescriptor 物件型別。 這使得衍生自 CustomTypeDescriptor 的類別選擇性地覆寫方法。

建構函式

名稱 Description
CustomTypeDescriptor()

初始化 CustomTypeDescriptor 類別的新執行個體。

CustomTypeDescriptor(ICustomTypeDescriptor)

使用父自訂型別描述符初始化該類別的新實例 CustomTypeDescriptor

方法

名稱 Description
Equals(Object)

判斷指定的 物件是否等於目前的物件。

(繼承來源 Object)
GetAttributes()

回傳一組由此型別描述符所代表的型別的自訂屬性。

GetClassName()

回傳由此類型描述符所代表的類別的完整限定名稱。

GetComponentName()

回傳由此類型描述符所代表的類別名稱。

GetConverter()

回傳此型別描述符所代表的型別轉換器。

GetDefaultEvent()

回傳該物件預設事件的事件描述符,該描述符由此類型描述符所代表。

GetDefaultProperty()

回傳由此類型描述符所代表的物件預設屬性的屬性描述符。

GetEditor(Type)

回傳一個指定型別的編輯器,該編輯器將與該型別描述符所代表的類別相關聯。

GetEvents()

回傳一組由此類型描述符所代表物件的事件描述符。

GetEvents(Attribute[])

回傳一組經過篩選的事件描述符集合,針對此類型描述符所代表的物件。

GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetProperties()

回傳一組由此類型描述符所代表物件的屬性描述符。

GetProperties(Attribute[])

回傳一組篩選過的屬性描述符集合,針對此類型描述符所代表的物件。

GetPropertyOwner(PropertyDescriptor)

傳回 物件,其中包含指定之屬性描述項所描述的屬性。

GetType()

取得目前實例的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
ToString()

傳回表示目前 物件的字串。

(繼承來源 Object)

適用於

另請參閱