TypeConverter.SimplePropertyDescriptor 类
定义
表示一个 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
- 继承
示例
有关此类的示例,请参阅中的示例 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 类的新实例。Initializes a new instance of the TypeConverter.SimplePropertyDescriptor class. |
| TypeConverter.SimplePropertyDescriptor(Type, String, Type, Attribute[]) |
初始化 TypeConverter.SimplePropertyDescriptor 类的新实例。Initializes a new instance of the TypeConverter.SimplePropertyDescriptor class. |
属性
| AttributeArray |
获取或设置属性的数组。Gets or sets an array of attributes. (继承自 MemberDescriptor) |
| Attributes |
获取该成员的特性集合。Gets the collection of attributes for this member. (继承自 MemberDescriptor) |
| Category |
获取该成员所属的类别的名称,如 CategoryAttribute 中所指定的。Gets the name of the category to which the member belongs, as specified in the CategoryAttribute. (继承自 MemberDescriptor) |
| ComponentType |
获取该属性说明符绑定到的组件的类型。Gets the type of component to which this property description binds. |
| Converter |
获取该属性的类型转换器。Gets the type converter for this property. (继承自 PropertyDescriptor) |
| Description |
获取成员的说明,如 DescriptionAttribute 中所指定的。Gets the description of the member, as specified in the DescriptionAttribute. (继承自 MemberDescriptor) |
| DesignTimeOnly |
获取是否只能在设计时设置该成员,如 DesignOnlyAttribute 中所指定的。Gets whether this member should be set only at design time, as specified in the DesignOnlyAttribute. (继承自 MemberDescriptor) |
| DisplayName |
获取可以显示在窗口(如“属性”窗口)中的名称。Gets the name that can be displayed in a window, such as a Properties window. (继承自 MemberDescriptor) |
| IsBrowsable |
获取一个指示该成员是否可浏览的值,如 BrowsableAttribute 中所指定的。Gets a value indicating whether the member is browsable, as specified in the BrowsableAttribute. (继承自 MemberDescriptor) |
| IsLocalizable |
获取指示是否应该本地化该属性的值,如 LocalizableAttribute 中所指定的值。Gets a value indicating whether this property should be localized, as specified in the LocalizableAttribute. (继承自 PropertyDescriptor) |
| IsReadOnly |
获取指示该属性是否为只读的值。Gets a value indicating whether this property is read-only. |
| Name |
获取此成员的名称。Gets the name of the member. (继承自 MemberDescriptor) |
| NameHashCode |
获取此成员名称的哈希代码,如 GetHashCode() 中所指定的。Gets the hash code for the name of the member, as specified in GetHashCode(). (继承自 MemberDescriptor) |
| PropertyType |
获取属性的类型。Gets the type of the property. |
| SerializationVisibility |
获取指示是否应该序列化该属性的值,如 DesignerSerializationVisibilityAttribute 中所指定的值。Gets a value indicating whether this property should be serialized, as specified in the DesignerSerializationVisibilityAttribute. (继承自 PropertyDescriptor) |
| SupportsChangeEvents |
获取一个值,该值指示此属性的值更改通知是否源自属性说明符的外部。Gets a value indicating whether value change notifications for this property may originate from outside the property descriptor. (继承自 PropertyDescriptor) |
方法
| AddValueChanged(Object, EventHandler) |
使其他对象在此属性更改时能得到通知。Enables other objects to be notified when this property changes. (继承自 PropertyDescriptor) |
| CanResetValue(Object) |
返回重置组件是否会更改该组件的值。Returns whether resetting the component changes the value of the component. |
| CreateAttributeCollection() |
使用传递到构造函数的特性数组创建特性的集合。Creates a collection of attributes using the array of attributes passed to the constructor. (继承自 MemberDescriptor) |
| CreateInstance(Type) |
创建指定类型的实例。Creates an instance of the specified type. (继承自 PropertyDescriptor) |
| Equals(Object) |
将此对象与另一个对象进行比较,看看它们是否相等。Compares this to another object to see if they are equivalent. (继承自 PropertyDescriptor) |
| FillAttributes(IList) |
将 PropertyDescriptor 的特性添加到父类中的指定特性列表中。Adds the attributes of the PropertyDescriptor to the specified list of attributes in the parent class. (继承自 PropertyDescriptor) |
| GetChildProperties() |
返回默认的 PropertyDescriptorCollection。Returns the default PropertyDescriptorCollection. (继承自 PropertyDescriptor) |
| GetChildProperties(Attribute[]) |
通过将指定的特性数组用作筛选器,返回 PropertyDescriptorCollection。Returns a PropertyDescriptorCollection using a specified array of attributes as a filter. (继承自 PropertyDescriptor) |
| GetChildProperties(Object) |
返回给定对象的 PropertyDescriptorCollection。Returns a PropertyDescriptorCollection for a given object. (继承自 PropertyDescriptor) |
| GetChildProperties(Object, Attribute[]) |
通过将指定的特性数组用作筛选器,返回给定对象的 PropertyDescriptorCollection。Returns a PropertyDescriptorCollection for a given object using a specified array of attributes as a filter. (继承自 PropertyDescriptor) |
| GetEditor(Type) |
获取指定类型的编辑器。Gets an editor of the specified type. (继承自 PropertyDescriptor) |
| GetHashCode() |
返回此对象的哈希代码。Returns the hash code for this object. (继承自 PropertyDescriptor) |
| GetInvocationTarget(Type, Object) |
此方法返回应在成员调用期间使用的对象。This method returns the object that should be used during invocation of members. (继承自 PropertyDescriptor) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| GetTypeFromName(String) |
返回使用其名称的类型。Returns a type using its name. (继承自 PropertyDescriptor) |
| GetValue(Object) |
当在派生类中被重写时,获取组件上的属性的当前值。When overridden in a derived class, gets the current value of the property on a component. (继承自 PropertyDescriptor) |
| GetValueChangedHandler(Object) |
检索特定组件的 |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| OnValueChanged(Object, EventArgs) |
引发已实现的 |
| RemoveValueChanged(Object, EventHandler) |
使其他对象在此属性更改时能得到通知。Enables other objects to be notified when this property changes. (继承自 PropertyDescriptor) |
| ResetValue(Object) |
重置组件的此属性的值。Resets the value for this property of the component. |
| SetValue(Object, Object) |
当在派生类中被重写时,将组件的值设置为一个不同的值。When overridden in a derived class, sets the value of the component to a different value. (继承自 PropertyDescriptor) |
| ShouldSerializeValue(Object) |
返回此属性的值是否可以持续。Returns whether the value of this property can persist. |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |