This class takes the place of a standard PropertyDescriptor when obtained
via the GetProperties method of a ICustomTypeDescriptor implementation.
It behaves like a standard PropertyDescriptor except that its ValueChanged
implementation works with our Changed event in order to support data binding,
and it provides additional improvements to design-mode behavior over the standard
PropertyDescriptor.
Inheritance Hierarchy
System.ComponentModel MemberDescriptor
System.ComponentModel PropertyDescriptor
Cognex.VisionPro.Implementation CogPropertyDescriptor
Cognex.VisionPro.Implementation CogIndexedPropertyDescriptor
Cognex.VisionPro.Implementation CogMethodDescriptor
Cognex.VisionPro.Implementation CogTypeDescriptor
Namespace: Cognex.VisionPro.Implementation
Assembly: Cognex.VisionPro (in Cognex.VisionPro.dll) Version: 87.1.0.0 (87.1.0.0)
Syntax
The CogPropertyDescriptor type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| CogPropertyDescriptor(PropertyDescriptor) |
Constructs a new CogPropertyDescriptor given a standard PropertyDescriptor.
| |
| CogPropertyDescriptor(PropertyInfo, Type) |
Constructs a new CogPropertyDescriptor given a PropertyInfo describing
the property and a Type describing the type of the component containing
the property.
|
Methods
| Name | Description | |
|---|---|---|
| AddValueChanged | (Overrides PropertyDescriptor AddValueChanged(Object, EventHandler).) | |
| CanResetValue | (Overrides PropertyDescriptor CanResetValue(Object).) | |
| CreateAttributeCollection | Creates a collection of attributes using the array of attributes passed to the constructor. (Inherited from MemberDescriptor.) | |
| CreateInstance | Creates an instance of the specified type. (Inherited from PropertyDescriptor.) | |
| Equals | Compares this to another object to see if they are equivalent. (Inherited from PropertyDescriptor.) | |
| FillAttributes | Adds the attributes of the PropertyDescriptor to the specified list of attributes in the parent class. (Inherited from PropertyDescriptor.) | |
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| GetChildProperties | Returns the default PropertyDescriptorCollection. (Inherited from PropertyDescriptor.) | |
| GetChildProperties( Attribute ) | Returns a PropertyDescriptorCollection using a specified array of attributes as a filter. (Inherited from PropertyDescriptor.) | |
| GetChildProperties(Object) | Returns a PropertyDescriptorCollection for a given object. (Inherited from PropertyDescriptor.) | |
| GetChildProperties(Object, Attribute ) | Returns a PropertyDescriptorCollection for a given object using a specified array of attributes as a filter. (Inherited from PropertyDescriptor.) | |
| GetEditor | (Overrides PropertyDescriptor GetEditor(Type).) | |
| GetHashCode | Returns the hash code for this object. (Inherited from PropertyDescriptor.) | |
| GetInvocationTarget | This method returns the object that should be used during invocation of members. (Inherited from PropertyDescriptor.) | |
| GetProperties |
Gets a PropertyDescriptorCollection containing property descriptors that
will respond to Changed events.
| |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| GetTypeFromName | Returns a type using its name. (Inherited from PropertyDescriptor.) | |
| GetValue | (Overrides PropertyDescriptor GetValue(Object).) | |
| GetValueChangedHandler | Retrieves the current set of ValueChanged event handlers for a specific component (Inherited from PropertyDescriptor.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| OnValueChanged | Raises the ValueChanged event that you implemented. (Inherited from PropertyDescriptor.) | |
| RemoveValueChanged | (Overrides PropertyDescriptor RemoveValueChanged(Object, EventHandler).) | |
| ResetValue | (Overrides PropertyDescriptor ResetValue(Object).) | |
| SetValue | (Overrides PropertyDescriptor SetValue(Object, Object).) | |
| ShouldSerializeValue | (Overrides PropertyDescriptor ShouldSerializeValue(Object).) | |
| ToString | Returns a String that represents the current Object. (Inherited from Object.) |
Properties
| Name | Description | |
|---|---|---|
| AttributeArray | Gets or sets an array of attributes. (Inherited from MemberDescriptor.) | |
| Attributes | (Overrides MemberDescriptor Attributes.) | |
| Category | Gets the name of the category to which the member belongs, as specified in the CategoryAttribute. (Inherited from MemberDescriptor.) | |
| ComponentType | (Overrides PropertyDescriptor ComponentType.) | |
| Converter | (Overrides PropertyDescriptor Converter.) | |
| Description | (Overrides MemberDescriptor Description.) | |
| DesignTimeOnly | Gets whether this member should be set only at design time, as specified in the DesignOnlyAttribute. (Inherited from MemberDescriptor.) | |
| DisplayName | Gets the name that can be displayed in a window, such as a Properties window. (Inherited from MemberDescriptor.) | |
| IsBrowsable | (Overrides MemberDescriptor IsBrowsable.) | |
| IsLocalizable | Gets a value indicating whether this property should be localized, as specified in the LocalizableAttribute. (Inherited from PropertyDescriptor.) | |
| IsReadOnly | (Overrides PropertyDescriptor IsReadOnly.) | |
| Name | Gets the name of the member. (Inherited from MemberDescriptor.) | |
| NameHashCode | Gets the hash code for the name of the member, as specified in GetHashCode . (Inherited from MemberDescriptor.) | |
| PasswordProtectedInGui | ||
| PropertyType | (Overrides PropertyDescriptor PropertyType.) | |
| SerializationVisibility | Gets a value indicating whether this property should be serialized, as specified in the DesignerSerializationVisibilityAttribute. (Inherited from PropertyDescriptor.) | |
| SupportsChangeEvents | Gets a value indicating whether value change notifications for this property may originate from outside the property descriptor. (Inherited from PropertyDescriptor.) |
See Also