The methods of the InheritedPropertyDescriptor class are listed below. For a complete list of InheritedPropertyDescriptor class members, see the InheritedPropertyDescriptor Members topic.
CanResetValue | Indicates whether reset will change the value of the component. If there is a DefaultValueAttribute, then this will return true if getValue returns something different than the default value. If there is a reset method and a shouldPersist method, this will return what shouldPersist returns. If there is just a reset method, this always returns true. If none of these cases apply, this returns false. |
Equals (inherited from PropertyDescriptor) | Compares this to another PropertyDescriptor to see if they are equivalent. |
GetDesignTimeOnly (inherited from MemberDescriptor) | Determines whether this member should be set only at design time as specified in the DesignOnlyAttribute. |
GetDisplayName (inherited from MemberDescriptor) | Gets the name that can be displayed in a window like a property browser. |
GetEditor (inherited from PropertyDescriptor) | Gets an editor of the specified type. |
GetHashCode (inherited from Object) | Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetHelpTopic (inherited from MemberDescriptor) | Gets the name of the Help topic specified in the HelpAttribute. |
GetHelpURL (inherited from MemberDescriptor) | Gets the URL for the Help file specified in the HelpAttribute. |
GetType (inherited from Object) | Gets the Type of the Object. |
GetValue | Retrieves the current value of the property on component, invoking the getXXX method. An exception in the getXXX method will pass through. |
ResetValue | Will reset the default value for this property on the component. If there was a default value passed in as a DefaultValueAttribute, that value will be set as the value of the property on the component. If there was no default value passed in, a ResetXXX method will be looked for. If one is found, it will be invoked. If one is not found, this is a nop. |
SetValue | This will set value to be the new value of this property on the component by invoking the setXXX method on the component. If the value specified is invalid, the component should throw an exception which will be passed up. The component designer should design the property so that getXXX following a setXXX should return the value passed in if no exception was thrown in the setXXX call. |
ShouldPersistValue | Indicates whether the value of this property needs to be persisted. In other words, it indicates whether the state of the property is distinct from when the component is first instantiated. If there is a default value specified in this PropertyDescriptor, it will be compared against the property's current value to determine this. If there is't, the shouldPersistXXX method is looked for and invoked if found. If both these routes fail, true will be returned. If this returns false, a tool should not persist this property's value. |
ToString (inherited from Object) | Returns a String that represents the current Object. |
CreateAttributeCollection (inherited from MemberDescriptor) | Creates a collection of attributes using the array of attributes that you passed to the constructor. |
CreateInstance (inherited from PropertyDescriptor) | Creates an instance of the specified type. |
FillAttributes (inherited from MemberDescriptor) | In an inheriting class, adds the attributes of the inheriting class to the specified list of attributes in the parent class. |
Finalize (inherited from Object) | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by the Garbage Collector (GC). This method may be ignored by the runtime; therefore, necessary cleanup operations should be done elsewhere. |
MemberwiseClone (inherited from Object) | Creates a shallow copy of the current Object. |
InheritedPropertyDescriptor Class | System.ComponentModel.Design Namespace