This topic has not yet been rated - Rate this topic

TypeConverter.SimplePropertyDescriptor Class

Represents an abstract class that provides properties for objects that do not have properties.

System.Object
  System.ComponentModel.MemberDescriptor
    System.ComponentModel.PropertyDescriptor
      System.ComponentModel.TypeConverter.SimplePropertyDescriptor

Namespace:  System.ComponentModel
Assembly:  System (in System.dll)
protected abstract class SimplePropertyDescriptor : PropertyDescriptor

The TypeConverter.SimplePropertyDescriptor type exposes the following members.

  Name Description
Protected method TypeConverter.SimplePropertyDescriptor(Type, String, Type) Initializes a new instance of the TypeConverter.SimplePropertyDescriptor class.
Protected method TypeConverter.SimplePropertyDescriptor(Type, String, Type, Attribute[]) Initializes a new instance of the TypeConverter.SimplePropertyDescriptor class.
Top
  Name Description
Protected property AttributeArray Gets or sets an array of attributes. (Inherited from MemberDescriptor.)
Public property Attributes Gets the collection of attributes for this member. (Inherited from MemberDescriptor.)
Public property Category Gets the name of the category to which the member belongs, as specified in the CategoryAttribute. (Inherited from MemberDescriptor.)
Public property ComponentType Gets the type of component to which this property description binds. (Overrides PropertyDescriptor.ComponentType.)
Public property Converter Gets the type converter for this property. (Inherited from PropertyDescriptor.)
Public property Description Gets the description of the member, as specified in the DescriptionAttribute. (Inherited from MemberDescriptor.)
Public property DesignTimeOnly Gets whether this member should be set only at design time, as specified in the DesignOnlyAttribute. (Inherited from MemberDescriptor.)
Public property DisplayName Gets the name that can be displayed in a window, such as a Properties window. (Inherited from MemberDescriptor.)
Public property IsBrowsable Gets a value indicating whether the member is browsable, as specified in the BrowsableAttribute. (Inherited from MemberDescriptor.)
Public property IsLocalizable Gets a value indicating whether this property should be localized, as specified in the LocalizableAttribute. (Inherited from PropertyDescriptor.)
Public property IsReadOnly Gets a value indicating whether this property is read-only. (Overrides PropertyDescriptor.IsReadOnly.)
Public property Name Gets the name of the member. (Inherited from MemberDescriptor.)
Protected property NameHashCode Gets the hash code for the name of the member, as specified in GetHashCode. (Inherited from MemberDescriptor.)
Public property PropertyType Gets the type of the property. (Overrides PropertyDescriptor.PropertyType.)
Public property SerializationVisibility Gets a value indicating whether this property should be serialized, as specified in the DesignerSerializationVisibilityAttribute. (Inherited from PropertyDescriptor.)
Public property SupportsChangeEvents Gets a value indicating whether value change notifications for this property may originate from outside the property descriptor. (Inherited from PropertyDescriptor.)
Top
  Name Description
Public method AddValueChanged Enables other objects to be notified when this property changes. (Inherited from PropertyDescriptor.)
Public method CanResetValue Returns whether resetting the component changes the value of the component. (Overrides PropertyDescriptor.CanResetValue(Object).)
Protected method CreateAttributeCollection Creates a collection of attributes using the array of attributes passed to the constructor. (Inherited from MemberDescriptor.)
Protected method CreateInstance Creates an instance of the specified type. (Inherited from PropertyDescriptor.)
Public method Equals Compares this to another object to see if they are equivalent. (Inherited from PropertyDescriptor.)
Protected method FillAttributes Adds the attributes of the PropertyDescriptor to the specified list of attributes in the parent class. (Inherited from PropertyDescriptor.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetChildProperties() Returns the default PropertyDescriptorCollection. (Inherited from PropertyDescriptor.)
Public method GetChildProperties(Attribute[]) Returns a PropertyDescriptorCollection using a specified array of attributes as a filter. (Inherited from PropertyDescriptor.)
Public method GetChildProperties(Object) Returns a PropertyDescriptorCollection for a given object. (Inherited from PropertyDescriptor.)
Public method GetChildProperties(Object, Attribute[]) Returns a PropertyDescriptorCollection for a given object using a specified array of attributes as a filter. (Inherited from PropertyDescriptor.)
Public method GetEditor Gets an editor of the specified type. (Inherited from PropertyDescriptor.)
Public method GetHashCode Returns the hash code for this object. (Inherited from PropertyDescriptor.)
Protected method GetInvocationTarget This method returns the object that should be used during invocation of members. (Inherited from PropertyDescriptor.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method GetTypeFromName Returns a type using its name. (Inherited from PropertyDescriptor.)
Public method GetValue When overridden in a derived class, gets the current value of the property on a component. (Inherited from PropertyDescriptor.)
Protected method GetValueChangedHandler Retrieves the current set of ValueChanged event handlers for a specific component (Inherited from PropertyDescriptor.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnValueChanged Raises the ValueChanged event that you implemented. (Inherited from PropertyDescriptor.)
Public method RemoveValueChanged Enables other objects to be notified when this property changes. (Inherited from PropertyDescriptor.)
Public method ResetValue Resets the value for this property of the component. (Overrides PropertyDescriptor.ResetValue(Object).)
Public method SetValue When overridden in a derived class, sets the value of the component to a different value. (Inherited from PropertyDescriptor.)
Public method ShouldSerializeValue Returns whether the value of this property can persist. (Overrides PropertyDescriptor.ShouldSerializeValue(Object).)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

Notes to Inheritors

When you inherit from TypeConverter.SimplePropertyDescriptor, you must override the GetValue and SetValue methods.

For an example on this class, see the example in PropertyDescriptor.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ