Click or drag to resize

PropertyHierarchy Class

Stores a hierarchy of property bags (IPropertyBag). The topmost bag is usually used to edit items, the items underneath are used to show the effective property values. When you add bags, please note that bags are added to the bottom of the hierarchy. Thus you have to add the topmost bag as the first item.
Inheritance Hierarchy
SystemObject
  Altaxo.Main.PropertiesPropertyHierarchy

Namespace: Altaxo.Main.Properties
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public class PropertyHierarchy : IReadOnlyPropertyBag, 
	ICloneable

The PropertyHierarchy type exposes the following members.

Constructors
 NameDescription
Public methodPropertyHierarchy Initializes a new empty instance of the PropertyHierarchy class.
Public methodPropertyHierarchy(IEnumerablePropertyBagWithInformation) Initializes a new instance of the PropertyHierarchy class.
Top
Properties
 NameDescription
Public propertyKeys Gets all property names in all bags currently present (unsorted).
Public propertyTopmostBag Gets the topmost bag. This is the bag that usually can be edited (i.e. values can be added, changed, or removed from this bag).
Public propertyTopmostBagInformation Gets the information about the topmost property bag.
Top
Methods
 NameDescription
Public methodAddBag Adds the bag. This bag will be added at the bottom of the hierarchy.
Public methodClone 
Public methodCreateCopyWithOnlyTopmostBagCloned Creates a copy of this property hierarchy. The topmost bag is cloned, the other bags are only copyied (shallow) to the new hierarchy. This function is intended for use with the Gui system, were all properties in the hierarchy should be displayed, but only the topmost bag should be edited.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodGetValueT(PropertyKeyT) Gets a property value.
Public methodGetValueT(PropertyKeyT, T) Gets a property value.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodTryGetValueT(PropertyKeyT, T) Tries to get a specific property value. The bags are search for the property, starting from the topmost bag and iterating to the bag at the bottom.
Public methodTryGetValueT(PropertyKeyT, T, IPropertyBag, PropertyBagInformation) Tries to get a specific property value. The bags are search for the property, starting from the topmost bag and iterating to the bag at the bottom.
Public methodTryGetValueT(String, T, IPropertyBag, PropertyBagInformation) Tries to get a specific property value. The bags are search for the property, starting from the topmost bag and iterating to the bag at the bottom.
Public methodTryGetValueT(String, Boolean, T, IPropertyBag, PropertyBagInformation) Tries to get a specific property value. The bags are search for the property, starting from the topmost bag and iterating to the bag at the bottom.
Top
See Also