共用方式為


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)
ConverterFromRegisteredType

取得這個屬性的類型轉換器。

(繼承來源 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)

適用於

另請參閱