TypeConverter.SimplePropertyDescriptor 類別

定義

表示 abstract 類別,此類別會針對沒有屬性的物件提供屬性。

protected: ref class TypeConverter::SimplePropertyDescriptor abstract : System::ComponentModel::PropertyDescriptor
protected abstract class TypeConverter.SimplePropertyDescriptor : System.ComponentModel.PropertyDescriptor
Protected MustInherit Class TypeConverter.SimplePropertyDescriptor
Inherits PropertyDescriptor
繼承
TypeConverter.SimplePropertyDescriptor

範例

如需這個類別的範例,請參閱 中的 PropertyDescriptor範例。

給實施者的注意事項

當您繼承自 TypeConverter.SimplePropertyDescriptor時,必須覆寫 GetValue(Object)SetValue(Object, Object) 方法。

建構函式

TypeConverter.SimplePropertyDescriptor(Type, String, Type)

初始化 TypeConverter.SimplePropertyDescriptor 類別的新執行個體。

TypeConverter.SimplePropertyDescriptor(Type, String, Type, Attribute[])

初始化 TypeConverter.SimplePropertyDescriptor 類別的新執行個體。

屬性

AttributeArray

取得或設定屬性的陣列。

(繼承來源 MemberDescriptor)
Attributes

取得這個成員的屬性集合。

(繼承來源 MemberDescriptor)
Category

取得成員所屬的分類名稱,如 CategoryAttribute 中所指定的。

(繼承來源 MemberDescriptor)
ComponentType

取得這個屬性描述繫結的元件型別。

Converter

取得這個屬性的型別轉換子。

(繼承來源 PropertyDescriptor)
Description

取得成員的描述,如 DescriptionAttribute 中所指定的。

(繼承來源 MemberDescriptor)
DesignTimeOnly

取得值,表示這個成員是否只在設計階段設定,如 DesignOnlyAttribute 中所指定的。

(繼承來源 MemberDescriptor)
DisplayName

取得可在視窗 (例如 [屬性] 視窗) 中顯示的名稱。

(繼承來源 MemberDescriptor)
IsBrowsable

取得值,表示成員是否可瀏覽,如 BrowsableAttribute 中指定的。

(繼承來源 MemberDescriptor)
IsLocalizable

取得值,表示這個屬性是否應該當地語系化,如 LocalizableAttribute 中指定的。

(繼承來源 PropertyDescriptor)
IsReadOnly

取得值,表示這個屬性是否為唯讀。

Name

取得成員的名稱。

(繼承來源 MemberDescriptor)
NameHashCode

取得成員名稱的雜湊程式碼,如 GetHashCode() 中所指定的。

(繼承來源 MemberDescriptor)
PropertyType

取得屬性的類型。

SerializationVisibility

取得值,表示這個屬性是否應該序列化,如 DesignerSerializationVisibilityAttribute 中指定的。

(繼承來源 PropertyDescriptor)
SupportsChangeEvents

取得值,表示這個屬性的數值變更告知是否可能來自屬性描述項之外。

(繼承來源 PropertyDescriptor)

方法

AddValueChanged(Object, EventHandler)

使其他物件能在這個屬性變更時受到告知。

(繼承來源 PropertyDescriptor)
CanResetValue(Object)

傳回數值,表示重設元件是否變更元件的值。

CreateAttributeCollection()

使用傳遞給建構函式的屬性陣列,建立屬性的集合。

(繼承來源 MemberDescriptor)
CreateInstance(Type)

建立指定類型的執行個體。

(繼承來源 PropertyDescriptor)
Equals(Object)

比較這個與另一個物件,以檢視它們是否相等。

(繼承來源 PropertyDescriptor)
FillAttributes(IList)

PropertyDescriptor 的屬性加入至父類別中的指定屬性清單。

(繼承來源 PropertyDescriptor)
GetChildProperties()

傳回預設的 PropertyDescriptorCollection

(繼承來源 PropertyDescriptor)
GetChildProperties(Attribute[])

使用指定的屬性陣列做為篩選條件,傳回 PropertyDescriptorCollection

(繼承來源 PropertyDescriptor)
GetChildProperties(Object)

傳回指定物件的 PropertyDescriptorCollection

(繼承來源 PropertyDescriptor)
GetChildProperties(Object, Attribute[])

使用指定的屬性陣列做為篩選條件,傳回指定物件的 PropertyDescriptorCollection

(繼承來源 PropertyDescriptor)
GetEditor(Type)

取得指定型別的編輯器。

(繼承來源 PropertyDescriptor)
GetHashCode()

傳回此物件的雜湊碼。

(繼承來源 PropertyDescriptor)
GetInvocationTarget(Type, Object)

這個方法會傳回應該在成員的引動過程使用的物件。

(繼承來源 PropertyDescriptor)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
GetTypeFromName(String)

使用其名稱以傳回型別。

(繼承來源 PropertyDescriptor)
GetValue(Object)

在衍生類別中覆寫時,取得元件上屬性的目前值。

(繼承來源 PropertyDescriptor)
GetValueChangedHandler(Object)

擷取特定元件的目前事件處理程式集 ValueChanged

(繼承來源 PropertyDescriptor)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
OnValueChanged(Object, EventArgs)

引發您實作 ValueChanged 的事件。

(繼承來源 PropertyDescriptor)
RemoveValueChanged(Object, EventHandler)

使其他物件能在這個屬性變更時受到告知。

(繼承來源 PropertyDescriptor)
ResetValue(Object)

重設元件的這個屬性值。

SetValue(Object, Object)

在衍生類別中覆寫時,將元件的值設定為不同的值。

(繼承來源 PropertyDescriptor)
ShouldSerializeValue(Object)

傳回數值,表示這個屬性的值是否能保存。

ToString()

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

(繼承來源 Object)

適用於

另請參閱