CustomTypeDescriptor 類別

定義

提供 ICustomTypeDescriptor 介面的簡單預設實作。Provides a simple default implementation of the ICustomTypeDescriptor interface.

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
衍生
實作

備註

如同 TypeDescriptionProviderCustomTypeDescriptor 類別會依賴在結構中提供之類型 ICustomTypeDescriptor 的父物件。Like TypeDescriptionProvider, the CustomTypeDescriptor class relies on a parent object of type ICustomTypeDescriptor supplied during construction. 這可讓衍生自 CustomTypeDescriptor 的類別,選擇性地覆寫方法。This allows classes that derive from CustomTypeDescriptor to selectively override methods.

建構函式

CustomTypeDescriptor()

初始化 CustomTypeDescriptor 類別的新執行個體。Initializes a new instance of the CustomTypeDescriptor class.

CustomTypeDescriptor(ICustomTypeDescriptor)

使用父自訂型別描述項,初始化 CustomTypeDescriptor 類別的新執行個體。Initializes a new instance of the CustomTypeDescriptor class using a parent custom type descriptor.

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetAttributes()

傳回這個型別描述項所表示之型別的自訂屬性集合。Returns a collection of custom attributes for the type represented by this type descriptor.

GetClassName()

傳回此類型描述元所代表之類別的完整格式名稱。Returns the fully qualified name of the class represented by this type descriptor.

GetComponentName()

傳回這個型別描述項所表示之類別的名稱。Returns the name of the class represented by this type descriptor.

GetConverter()

傳回這個型別描述項所表示之類別的型別轉換子。Returns a type converter for the type represented by this type descriptor.

GetDefaultEvent()

傳回這個型別描述項所表示之物件的預設事件描述項。Returns the event descriptor for the default event of the object represented by this type descriptor.

GetDefaultProperty()

傳回這個型別描述項所表示之物件的預設屬性描述項。Returns the property descriptor for the default property of the object represented by this type descriptor.

GetEditor(Type)

傳回指定型別的編輯器,這個指定型別與這個型別描述項所表示的類別關聯。Returns an editor of the specified type that is to be associated with the class represented by this type descriptor.

GetEvents()

傳回這個型別描述項所表示之物件的事件描述項集合。Returns a collection of event descriptors for the object represented by this type descriptor.

GetEvents(Attribute[])

傳回這個型別描述項所表示之物件的已篩選事件描述項集合。Returns a filtered collection of event descriptors for the object represented by this type descriptor.

GetHashCode()

作為預設雜湊函數。Serves as the default hash function.

(繼承來源 Object)
GetProperties()

傳回這個型別描述項所表示之物件的屬性描述項集合。Returns a collection of property descriptors for the object represented by this type descriptor.

GetProperties(Attribute[])

傳回這個型別描述項所表示之物件的已篩選屬性描述項集合。Returns a filtered collection of property descriptors for the object represented by this type descriptor.

GetPropertyOwner(PropertyDescriptor)

傳回物件,包含指定的屬性描述項所描述的屬性。Returns an object that contains the property described by the specified property descriptor.

GetType()

取得目前執行個體的 TypeGets 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)

適用於

另請參閱