CogPropertyDescriptor ClassCognex VisionPro 9.23
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 Object
  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: 91.0.0.0 (91.0.0.0)
Syntax

public class CogPropertyDescriptor : PropertyDescriptor

The CogPropertyDescriptor type exposes the following members.

Constructors

  NameDescription
Public methodCogPropertyDescriptor(PropertyDescriptor)
Constructs a new CogPropertyDescriptor given a standard PropertyDescriptor.
Public methodCogPropertyDescriptor(PropertyInfo, Type)
Constructs a new CogPropertyDescriptor given a PropertyInfo describing the property and a Type describing the type of the component containing the property.
Top
Methods

  NameDescription
Public methodAddValueChanged (Overrides PropertyDescriptor AddValueChanged(Object, EventHandler).)
Public methodCanResetValue (Overrides PropertyDescriptor CanResetValue(Object).)
Protected methodCreateAttributeCollection
Creates a collection of attributes using the array of attributes passed to the constructor.
(Inherited from MemberDescriptor.)
Protected methodCreateInstance
Creates an instance of the specified type.
(Inherited from PropertyDescriptor.)
Public methodEquals
Compares this to another object to see if they are equivalent.
(Inherited from PropertyDescriptor.)
Protected methodFillAttributes
Adds the attributes of the PropertyDescriptor to the specified list of attributes in the parent class.
(Inherited from PropertyDescriptor.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetChildProperties 
Returns the default PropertyDescriptorCollection.
(Inherited from PropertyDescriptor.)
Public methodGetChildProperties( Attribute )
Returns a PropertyDescriptorCollection using a specified array of attributes as a filter.
(Inherited from PropertyDescriptor.)
Public methodGetChildProperties(Object)
Returns a PropertyDescriptorCollection for a given object.
(Inherited from PropertyDescriptor.)
Public methodGetChildProperties(Object,  Attribute )
Returns a PropertyDescriptorCollection for a given object using a specified array of attributes as a filter.
(Inherited from PropertyDescriptor.)
Public methodGetEditor (Overrides PropertyDescriptor GetEditor(Type).)
Public methodGetHashCode
Returns the hash code for this object.
(Inherited from PropertyDescriptor.)
Protected methodGetInvocationTarget
This method returns the object that should be used during invocation of members.
(Inherited from PropertyDescriptor.)
Public methodStatic memberGetProperties
Gets a PropertyDescriptorCollection containing property descriptors that will respond to Changed events.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodGetTypeFromName
Returns a type using its name.
(Inherited from PropertyDescriptor.)
Public methodGetValue (Overrides PropertyDescriptor GetValue(Object).)
Protected methodGetValueChangedHandler
Retrieves the current set of ValueChanged event handlers for a specific component
(Inherited from PropertyDescriptor.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnValueChanged
Raises the ValueChanged event that you implemented.
(Inherited from PropertyDescriptor.)
Public methodRemoveValueChanged (Overrides PropertyDescriptor RemoveValueChanged(Object, EventHandler).)
Public methodResetValue (Overrides PropertyDescriptor ResetValue(Object).)
Public methodSetValue (Overrides PropertyDescriptor SetValue(Object, Object).)
Public methodShouldSerializeValue (Overrides PropertyDescriptor ShouldSerializeValue(Object).)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Properties

  NameDescription
Protected propertyAttributeArray
Gets or sets an array of attributes.
(Inherited from MemberDescriptor.)
Public propertyAttributes (Overrides MemberDescriptor Attributes.)
Public propertyCategory
Gets the name of the category to which the member belongs, as specified in the CategoryAttribute.
(Inherited from MemberDescriptor.)
Public propertyComponentType (Overrides PropertyDescriptor ComponentType.)
Public propertyConverter (Overrides PropertyDescriptor Converter.)
Public propertyDescription (Overrides MemberDescriptor Description.)
Public propertyDesignTimeOnly
Gets whether this member should be set only at design time, as specified in the DesignOnlyAttribute.
(Inherited from MemberDescriptor.)
Public propertyDisplayName
Gets the name that can be displayed in a window, such as a Properties window.
(Inherited from MemberDescriptor.)
Public propertyIsBrowsable (Overrides MemberDescriptor IsBrowsable.)
Public propertyIsLocalizable
Gets a value indicating whether this property should be localized, as specified in the LocalizableAttribute.
(Inherited from PropertyDescriptor.)
Public propertyIsReadOnly (Overrides PropertyDescriptor IsReadOnly.)
Public propertyName
Gets the name of the member.
(Inherited from MemberDescriptor.)
Protected propertyNameHashCode
Gets the hash code for the name of the member, as specified in GetHashCode .
(Inherited from MemberDescriptor.)
Public propertyPasswordProtectedInGui
Public propertyPropertyType (Overrides PropertyDescriptor PropertyType.)
Public propertySerializationVisibility
Gets a value indicating whether this property should be serialized, as specified in the DesignerSerializationVisibilityAttribute.
(Inherited from PropertyDescriptor.)
Public propertySupportsChangeEvents
Gets a value indicating whether value change notifications for this property may originate from outside the property descriptor.
(Inherited from PropertyDescriptor.)
Top
See Also