Click or drag to resize

PropertyExtensions Class

Helper class to get the property bags in the hierarchy as used in the Altaxo project, and to retrieve property values using this hierarchy.
Inheritance Hierarchy
SystemObject
  AltaxoPropertyExtensions

Namespace: Altaxo
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static class PropertyExtensions

The PropertyExtensions type exposes the following members.

Methods
 NameDescription
Public Extension MethodGetProjectFolderPropertyDocuments Gets the project folder property documents down the project folder hierarchie.
Public Extension MethodGetPropertyBags Gets the property bags in the hierarchy. The first bag in the enumeration is the bag that owns the owner. Then the bags of the folders in which the owner is located, its parent folders, and then UserSettings, ApplicationSettings, and BuiltinSettings follow.
Public methodStatic memberGetPropertyBagsStartingFromApplicationSettings Gets the property bags 'ApplicationSettings' and 'BuiltinSettings' along with the bag information.
Public methodStatic memberGetPropertyBagsStartingFromFolder Gets the property bags in the hierarchy. The first bag in the enumeration is the bag that is a project folder bag belonging to the provided folder name. Then the bags in its parent folders, and then UserSettings, ApplicationSettings, and BuiltinSettings follow.
Public methodStatic memberGetPropertyBagsStartingFromUserSettings Gets the property bags 'UserSettings, 'ApplicationSettings' and 'BuiltinSettings' along with the bag information.
Public Extension MethodGetPropertyContext Gets the property context of the document node. If the provided node is not implementing IPropertyBagOwner, the parent nodes of this node are searched, until a node which implements IPropertyBagOwner is found.
Public methodStatic memberGetPropertyContextOfProject Gets the property bags in hierarchical order. The first bag in the enumeration is the bag that belongs to the project (the project's root folder bag). Then the bags of the UserSettings, ApplicationSettings, and BuiltinSettings follow.
Public methodStatic memberGetPropertyContextOfProjectFolder Gets the property bags in the hierarchal order. The first bag in the enumeration is the bag is in the provided project folder. Then the bags of its parent folders, and then UserSettings, ApplicationSettings, and BuiltinSettings follow.
Public Extension MethodGetPropertyHierarchy Gets the property bags in the hierarchal order. The first bag in the enumeration is the bag that owns the owner. Then the bags of the folders in which the owner is located, its parent folders, and then UserSettings, ApplicationSettings, and BuiltinSettings follow.
Public methodStatic memberGetPropertyHierarchyStartingFromApplicationSettings Gets the property bags 'ApplicationSettings' and 'BuiltinSettings' stored in a PropertyHierarchy.
Public methodStatic memberGetPropertyHierarchyStartingFromUserSettings Gets the property bags 'ApplicationSettings' 'BuiltinSettings' and 'UserSettings' stored in a PropertyHierarchy.
Public Extension MethodGetPropertyValueT(IPropertyBagOwner, PropertyKeyT, FuncT) Gets the property value. The property is searched in the provided owner, then in the containing folder, and then the hierarchy down to the built-in property bag.
Public Extension MethodGetPropertyValueT(IPropertyBagOwner, String, FuncT) Gets the property value. The property is searched in the provided owner, then in the containing folder, and then the hierarchy down to the built-in property bag.
Public methodStatic memberGetPropertyValueStartingFromApplicationSettingsT Gets the property value either from the application settings or from the builtin settings.
Top
See Also