TypeConverter.SimplePropertyDescriptor TypeConverter.SimplePropertyDescriptor TypeConverter.SimplePropertyDescriptor Class

定義

表示 abstract 類別,此類別會針對沒有屬性的物件提供屬性。Represents an abstract class that provides properties for objects that do not have properties.

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.SimplePropertyDescriptorTypeConverter.SimplePropertyDescriptorTypeConverter.SimplePropertyDescriptor

範例

如需此類別的範例,請參閱中PropertyDescriptor的範例。For an example on this class, see the example in PropertyDescriptor.

給繼承者的注意事項

當您繼承自TypeConverter.SimplePropertyDescriptor時,您必須覆GetValue(Object)SetValue(Object, Object)和方法。When you inherit from TypeConverter.SimplePropertyDescriptor, you must override the GetValue(Object) and SetValue(Object, Object) methods.

建構函式

TypeConverter.SimplePropertyDescriptor(Type, String, Type) TypeConverter.SimplePropertyDescriptor(Type, String, Type) TypeConverter.SimplePropertyDescriptor(Type, String, Type)

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

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

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

屬性

AttributeArray AttributeArray AttributeArray

取得或設定屬性的陣列。Gets or sets an array of attributes.

(Inherited from MemberDescriptor)
Attributes Attributes Attributes

取得這個成員的屬性集合。Gets the collection of attributes for this member.

(Inherited from MemberDescriptor)
Category Category Category

取得成員所屬的分類名稱,如 CategoryAttribute 中所指定的。Gets the name of the category to which the member belongs, as specified in the CategoryAttribute.

(Inherited from MemberDescriptor)
ComponentType ComponentType ComponentType

取得這個屬性描述繫結的元件型別。Gets the type of component to which this property description binds.

Converter Converter Converter

取得這個屬性的型別轉換子。Gets the type converter for this property.

(Inherited from PropertyDescriptor)
Description Description Description

取得成員的描述,如 DescriptionAttribute 中所指定的。Gets the description of the member, as specified in the DescriptionAttribute.

(Inherited from MemberDescriptor)
DesignTimeOnly DesignTimeOnly DesignTimeOnly

取得值,表示這個成員是否只在設計階段設定,如 DesignOnlyAttribute 中所指定的。Gets whether this member should be set only at design time, as specified in the DesignOnlyAttribute.

(Inherited from MemberDescriptor)
DisplayName DisplayName DisplayName

取得可在視窗 (例如 [屬性] 視窗) 中顯示的名稱。Gets the name that can be displayed in a window, such as a Properties window.

(Inherited from MemberDescriptor)
IsBrowsable IsBrowsable IsBrowsable

取得值,表示成員是否可瀏覽,如 BrowsableAttribute 中指定的。Gets a value indicating whether the member is browsable, as specified in the BrowsableAttribute.

(Inherited from MemberDescriptor)
IsLocalizable IsLocalizable IsLocalizable

取得值,表示這個屬性是否應該當地語系化,如 LocalizableAttribute 中指定的。Gets a value indicating whether this property should be localized, as specified in the LocalizableAttribute.

(Inherited from PropertyDescriptor)
IsReadOnly IsReadOnly IsReadOnly

取得值,表示這個屬性是否為唯讀。Gets a value indicating whether this property is read-only.

Name Name Name

取得成員的名稱。Gets the name of the member.

(Inherited from MemberDescriptor)
NameHashCode NameHashCode NameHashCode

取得成員名稱的雜湊程式碼,如 GetHashCode() 中所指定的。Gets the hash code for the name of the member, as specified in GetHashCode().

(Inherited from MemberDescriptor)
PropertyType PropertyType PropertyType

取得屬性的型別。Gets the type of the property.

SerializationVisibility SerializationVisibility SerializationVisibility

取得值,表示這個屬性是否應該序列化,如 DesignerSerializationVisibilityAttribute 中指定的。Gets a value indicating whether this property should be serialized, as specified in the DesignerSerializationVisibilityAttribute.

(Inherited from PropertyDescriptor)
SupportsChangeEvents SupportsChangeEvents SupportsChangeEvents

取得值,表示這個屬性的數值變更告知是否可能來自屬性描述項之外。Gets a value indicating whether value change notifications for this property may originate from outside the property descriptor.

(Inherited from PropertyDescriptor)

方法

AddValueChanged(Object, EventHandler) AddValueChanged(Object, EventHandler) AddValueChanged(Object, EventHandler)

使其他物件能在這個屬性變更時受到告知。Enables other objects to be notified when this property changes.

(Inherited from PropertyDescriptor)
CanResetValue(Object) CanResetValue(Object) CanResetValue(Object)

傳回數值,表示重設元件是否變更元件的值。Returns whether resetting the component changes the value of the component.

CreateAttributeCollection() CreateAttributeCollection() CreateAttributeCollection()

使用傳遞給建構函式的屬性陣列,建立屬性的集合。Creates a collection of attributes using the array of attributes passed to the constructor.

(Inherited from MemberDescriptor)
CreateInstance(Type) CreateInstance(Type) CreateInstance(Type)

建立指定類型的執行個體。Creates an instance of the specified type.

(Inherited from PropertyDescriptor)
Equals(Object) Equals(Object) Equals(Object)

比較這個與另一個物件,以檢視它們是否相等。Compares this to another object to see if they are equivalent.

(Inherited from PropertyDescriptor)
FillAttributes(IList) FillAttributes(IList) FillAttributes(IList)

PropertyDescriptor 的屬性加入至父類別中的指定屬性清單。Adds the attributes of the PropertyDescriptor to the specified list of attributes in the parent class.

(Inherited from PropertyDescriptor)
GetChildProperties() GetChildProperties() GetChildProperties()

傳回預設的 PropertyDescriptorCollectionReturns the default PropertyDescriptorCollection.

(Inherited from PropertyDescriptor)
GetChildProperties(Attribute[]) GetChildProperties(Attribute[]) GetChildProperties(Attribute[])

使用指定的屬性陣列做為篩選條件,傳回 PropertyDescriptorCollectionReturns a PropertyDescriptorCollection using a specified array of attributes as a filter.

(Inherited from PropertyDescriptor)
GetChildProperties(Object) GetChildProperties(Object) GetChildProperties(Object)

傳回指定物件的 PropertyDescriptorCollectionReturns a PropertyDescriptorCollection for a given object.

(Inherited from PropertyDescriptor)
GetChildProperties(Object, Attribute[]) GetChildProperties(Object, Attribute[]) GetChildProperties(Object, Attribute[])

使用指定的屬性陣列做為篩選條件,傳回指定物件的 PropertyDescriptorCollectionReturns a PropertyDescriptorCollection for a given object using a specified array of attributes as a filter.

(Inherited from PropertyDescriptor)
GetEditor(Type) GetEditor(Type) GetEditor(Type)

取得指定型別的編輯器。Gets an editor of the specified type.

(Inherited from PropertyDescriptor)
GetHashCode() GetHashCode() GetHashCode()

傳回這個物件的雜湊程式碼。Returns the hash code for this object.

(Inherited from PropertyDescriptor)
GetInvocationTarget(Type, Object) GetInvocationTarget(Type, Object) GetInvocationTarget(Type, Object)

這個方法會傳回應該在成員的引動過程使用的物件。This method returns the object that should be used during invocation of members.

(Inherited from PropertyDescriptor)
GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
GetTypeFromName(String) GetTypeFromName(String) GetTypeFromName(String)

使用其名稱以傳回型別。Returns a type using its name.

(Inherited from PropertyDescriptor)
GetValue(Object) GetValue(Object) GetValue(Object)

在衍生類別中覆寫時,取得元件上屬性的目前值。When overridden in a derived class, gets the current value of the property on a component.

(Inherited from PropertyDescriptor)
GetValueChangedHandler(Object) GetValueChangedHandler(Object) GetValueChangedHandler(Object)

擷取特定元件目前的 ValueChanged 事件處理常式集Retrieves the current set of ValueChanged event handlers for a specific component

(Inherited from PropertyDescriptor)
MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
OnValueChanged(Object, EventArgs) OnValueChanged(Object, EventArgs) OnValueChanged(Object, EventArgs)

引發您之前實作的 ValueChanged 事件。Raises the ValueChanged event that you implemented.

(Inherited from PropertyDescriptor)
RemoveValueChanged(Object, EventHandler) RemoveValueChanged(Object, EventHandler) RemoveValueChanged(Object, EventHandler)

使其他物件能在這個屬性變更時受到告知。Enables other objects to be notified when this property changes.

(Inherited from PropertyDescriptor)
ResetValue(Object) ResetValue(Object) ResetValue(Object)

重設元件的這個屬性值。Resets the value for this property of the component.

SetValue(Object, Object) SetValue(Object, Object) SetValue(Object, Object)

在衍生類別中覆寫時,將元件的值設定為不同的值。When overridden in a derived class, sets the value of the component to a different value.

(Inherited from PropertyDescriptor)
ShouldSerializeValue(Object) ShouldSerializeValue(Object) ShouldSerializeValue(Object)

傳回數值,表示這個屬性的值是否能保存。Returns whether the value of this property can persist.

ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)

適用於

另請參閱