TypeConverter.SimplePropertyDescriptor TypeConverter.SimplePropertyDescriptor TypeConverter.SimplePropertyDescriptor Class

Definition

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

Examples

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

Notes to Inheritors

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

Constructors

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

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[])

Initializes a new instance of the TypeConverter.SimplePropertyDescriptor class.

Properties

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

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

Gets the description of the member, as specified in the DescriptionAttribute.

(Inherited from MemberDescriptor)
DesignTimeOnly DesignTimeOnly DesignTimeOnly

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

Gets a value indicating whether the member is browsable, as specified in the BrowsableAttribute.

(Inherited from MemberDescriptor)
IsLocalizable IsLocalizable IsLocalizable

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

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

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)

Methods

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)

Adds the attributes of the PropertyDescriptor to the specified list of attributes in the parent class.

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

Returns the default PropertyDescriptorCollection.

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

Returns a PropertyDescriptorCollection using a specified array of attributes as a filter.

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

Returns a PropertyDescriptorCollection for a given object.

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

Returns 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()

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

Retrieves the current set of ValueChanged event handlers for a specific component

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

Creates a shallow copy of the current Object.

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

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)

Applies to

See Also