ChildPropertyTypeDescriptor Class

This custom type descriptor is used to add child properties to the set of visible, bindable properties for an object.

Definition

Namespace: EWSoftware.PDI.Binding
Assembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2023.1.2.0
public class ChildPropertyTypeDescriptor : CustomTypeDescriptor
Inheritance
Object    CustomTypeDescriptor    ChildPropertyTypeDescriptor

Remarks

This type descriptor allows child properties to be bound to controls and edited. The type descriptor will scan down up to three levels and goes no further to prevent endless recursion and/or stack overflows. Primitive and String property types are ignored as they have no useful properties for binding purposes.

Properties with a BrowsableAttribute set to false are ignored along with all of their child properties. Properties with a HidePropertyAttribute are ignored but their child properties are added to the list. This allows you to exclude the parent property if it serves no purpose other than to contain the child properties.

Child properties are prefixed with the parent property name followed by an underscore. Use this naming convention when binding to the child properties. (i.e. Address_Street, Address_State where Address is a class and Street and State are two of its properties).

Constructors

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetAttributesReturns a collection of custom attributes for the type represented by this type descriptor.
(Inherited from CustomTypeDescriptor)
GetClassNameReturns the fully qualified name of the class represented by this type descriptor.
(Inherited from CustomTypeDescriptor)
GetComponentNameReturns the name of the class represented by this type descriptor.
(Inherited from CustomTypeDescriptor)
GetConverterReturns a type converter for the type represented by this type descriptor.
(Inherited from CustomTypeDescriptor)
GetDefaultEventReturns the event descriptor for the default event of the object represented by this type descriptor.
(Inherited from CustomTypeDescriptor)
GetDefaultPropertyReturns the property descriptor for the default property of the object represented by this type descriptor.
(Inherited from CustomTypeDescriptor)
GetEditorReturns an editor of the specified type that is to be associated with the class represented by this type descriptor.
(Inherited from CustomTypeDescriptor)
GetEventsReturns a collection of event descriptors for the object represented by this type descriptor.
(Inherited from CustomTypeDescriptor)
GetEvents(Attribute)Returns a filtered collection of event descriptors for the object represented by this type descriptor.
(Inherited from CustomTypeDescriptor)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetPropertiesReturns a collection of property descriptors for the object represented by this type descriptor.
(Inherited from CustomTypeDescriptor)
GetProperties(Attribute) This is overridden to return a property descriptors for the object represented by this type descriptor along with extra property descriptors for its child properties.
(Overrides CustomTypeDescriptorGetProperties(Attribute))
GetPropertyOwnerReturns an object that contains the property described by the specified property descriptor.
(Inherited from CustomTypeDescriptor)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also