Click or drag to resize

IPropertyService Interface

Service for getting global and user defined properties for the application.

Namespace: Altaxo.Main.Services
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public interface IPropertyService

The IPropertyService type exposes the following members.

Properties
 NameDescription
Public propertyApplicationSettings Gets the property bag with application settings. These are typically stored in the .addin file.
Public propertyBuiltinSettings Gets the builtin settings. These are typically hard-coded in the program.
Public propertyConfigDirectory Absolute path to the application's config directory.
Public propertyDataDirectory Absolute path to the application's data directory. This is the directory where e.g. resources for the application are stored.
Public propertyLocalApplicationSettings Returns the property bag with local application settings (settings on this computer, global for all users). These are typically stored in the LOCALAPPDATA directory. This bag is not used by Altaxo (but by other programs).
Public propertyUserSettings Returns the property bag with user settings. These are typically stored in the user's application settings directory.
Top
Methods
 NameDescription
Public methodGetValueT(PropertyKeyT, RuntimePropertyKind) Gets the property value from UserSettings, then ApplicationSettings, then BuiltinSettings.
Public methodGetValueT(String, T) Gets the property value from UserSettings, then ApplicationSettings, then BuiltinSettings.
Public methodGetValueT(PropertyKeyT, RuntimePropertyKind, FuncT) Gets the property value from UserSettings, then ApplicationSettings, then BuiltinSettings.
Public methodGetValueOrNullT Gets the property value from UserSettings, then ApplicationSettings, then BuiltinSettings.
Public methodSave Saves the user settings.
Public methodSetValueT(PropertyKeyT, T) Sets a value belonging to a property key
Public methodSetValueT(String, T) Sets a value associated with a property key.
Top
Events
 NameDescription
Public eventPropertyChangedOccurs when a property has changed. Argument is the property key.
Top
See Also