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)

适用于

另请参阅