Click or drag to resize
PropertyBag Class
Class which represents a collection of custom properties that can be selected into a PropertyGrid to provide functionality beyond that of the simple reflection normally used to query an object's properties.
Inheritance Hierarchy
SystemObject
  SD.Tools.Algorithmia.GeneralDataStructures.PropertyEditingPropertyBag
    SD.Tools.Algorithmia.GeneralDataStructures.PropertyEditingPropertyTable

Namespace:  SD.Tools.Algorithmia.GeneralDataStructures.PropertyEditing
Assembly:  SD.Tools.Algorithmia (in SD.Tools.Algorithmia.dll) Version: 1.2.0.0 (1.2.16.0406)
Syntax
public class PropertyBag : ICustomTypeDescriptor

The PropertyBag type exposes the following members.

Constructors
  NameDescription
Public methodPropertyBag
Initializes a new instance of the PropertyBag class.
Top
Properties
  NameDescription
Public propertyDefaultProperty
Gets or sets the name of the default property in the collection.
Public propertyPropertySpecifications
Gets the collection of properties contained within this PropertyBag.
Public propertyValueGetterFunc
Gets or sets the value getter func, which is a Func used in OnGetValue, when set, instead of raising an event. Use this func instead of the event to avoid memory leaks due to event handlers which keep the property bag in memory as long as the creating code is kept in memory: this func has a reference to the value container instead of to the property bag.
Public propertyValueSetterFunc
Gets or sets the value setter func, which is a Func used in OnSetValue, when set, instead of raising an event. Use this func instead of the event to avoid memory leaks due to event handlers which keep the property bag in memory as long as the creating code is kept in memory: this func has a reference to the value container instead of to the property bag.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnGetValue
Raises the GetValue event, if ValueGetterFunc is left null, otherwise it will call ValueGetterFunc instead.
Protected methodOnSetValue
Raises the SetValue event, if ValueGetterFunc is left null, otherwise it will call ValueGetterFunc instead.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
  NameDescription
Public eventGetValue
Event which is raised when a PropertyGrid requests the value of a property.
Public eventSetValue
Event which is raised when the user changes the value of a property in a PropertyGrid.
Top
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate methodICustomTypeDescriptorGetAttributes
Returns a collection of custom attributes for this instance of a component.
Explicit interface implementationPrivate methodICustomTypeDescriptorGetClassName
Returns the class name of this instance of a component.
Explicit interface implementationPrivate methodICustomTypeDescriptorGetComponentName
Returns the name of this instance of a component.
Explicit interface implementationPrivate methodICustomTypeDescriptorGetConverter
Returns a type converter for this instance of a component.
Explicit interface implementationPrivate methodICustomTypeDescriptorGetDefaultEvent
Returns the default event for this instance of a component.
Explicit interface implementationPrivate methodICustomTypeDescriptorGetDefaultProperty
Returns the default property for this instance of a component.
Explicit interface implementationPrivate methodICustomTypeDescriptorGetEditor
Returns an editor of the specified type for this instance of a component.
Explicit interface implementationPrivate methodICustomTypeDescriptorGetEvents
Returns the events for this instance of a component.
Explicit interface implementationPrivate methodICustomTypeDescriptorGetEvents(Attribute)
Returns the events for this instance of a component using the specified attribute array as a filter.
Explicit interface implementationPrivate methodICustomTypeDescriptorGetProperties
Returns the properties for this instance of a component.
Explicit interface implementationPrivate methodICustomTypeDescriptorGetProperties(Attribute)
Returns the properties for this instance of a component using the attribute array as a filter.
Explicit interface implementationPrivate methodICustomTypeDescriptorGetPropertyOwner
Returns an object that contains the property described by the specified property descriptor.
Top
See Also